Set custom_key on group based on value in Dialog


Hi All,

I want set some custom keys on a group, where the name of the is set in a text field on the service dialog.
Does anyone know how I can do this?

When you do it for the current logged in user, it is:

user = $evm.root[‘user’]
unless user.nil?
miq_group = user.miq_group
unless miq_group.nil?
miq_group.custom_set(“Jeroen1”,“Test Key”)