diff --git a/b812ceb69337a210633378917cba10bc/update/sys_hub_action_type_definition_39c7d53283283610932c5529feaad322.xml b/b812ceb69337a210633378917cba10bc/update/sys_hub_action_type_definition_39c7d53283283610932c5529feaad322.xml new file mode 100644 index 0000000..2fb1385 --- /dev/null +++ b/b812ceb69337a210633378917cba10bc/update/sys_hub_action_type_definition_39c7d53283283610932c5529feaad322.xml @@ -0,0 +1,2576 @@ + + + public + + + + true + + {labelCacheCleanUpExecuted=true} + 28100 + false + + 52bcdf56832cf210932c5529feaad395 + Update Assignment Group + This action is used to update any assignment group for the following +- Manager +- Description +- Group Email +- Members of the Group + + false + copy_of_update_assignment_group + [{"name":"{{action.assignment_group}}","label":"action➛Assignment Group","type":"action","ref":"","reference_display":"Group","base_type":"reference","parent_table_name":"","column_name":"","choices":null,"attributes":{}},{"name":"{{action.manager}}","label":"action➛Manager","type":"action","ref":"","reference_display":"User","base_type":"reference","parent_table_name":"","column_name":"","choices":null,"attributes":{}},{"name":"{{action.description}}","label":"action➛Description","type":"action","ref":"","reference_display":"","base_type":"string","parent_table_name":"","column_name":"","choices":null,"attributes":{}},{"name":"{{action.group_email}}","label":"action➛Group Email","type":"action","ref":"","reference_display":"","base_type":"email","parent_table_name":"","column_name":"","choices":null,"attributes":{}},{"name":"{{action.type}}","label":"action➛Type","type":"action","ref":"","reference_display":"","base_type":"string","parent_table_name":"","column_name":"","choices":null,"attributes":{}},{"name":"{{action.members}}","label":"action➛Members","type":"action","ref":"","reference_display":"User","base_type":"glide_list","parent_table_name":"","column_name":"","choices":null,"attributes":{}},{"name":"{{action.record}}","label":"action➛record","type":"action","ref":"","reference_display":"","base_type":"document_id","parent_table_name":"","column_name":"","choices":null,"attributes":{}},{"name":"{{action.assignment_group.sys_id}}","label":"action➛Assignment Group➛Sys ID","type":"action","ref":"","reference_display":"Sys ID","base_type":"GUID","parent_table_name":"sys_user_group","column_name":"sys_id","choices":null,"attributes":{}}] + 721c15f683203210932c5529feaad31d + + Update Assignment Group + + + false + published + sys_hub_action_type_definition + GokulkumarV + 2025-10-16 08:59:20 + global + / + 39c7d53283283610932c5529feaad322 + 22 + Update Assignment Group + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + sys_hub_action_type_definition_39c7d53283283610932c5529feaad322 + GokulkumarV + 2025-10-16 10:39:57 + false + + + + + + sys_hub_action_type_definition + 39c7d53283283610932c5529feaad322 + 2 + sys_variable_value + GokulkumarV + 2025-10-16 08:59:22 + 16c7d53283283610932c5529feaad3f9 + 0 + GokulkumarV + 2025-10-16 08:59:22 + 0 + 92c7d53283283610932c5529feaad3ee + + + sys_hub_action_type_definition + 39c7d53283283610932c5529feaad322 + 1 + sys_variable_value + GokulkumarV + 2025-10-16 08:59:22 + d6c7d53283283610932c5529feaad3f9 + 1 + GokulkumarV + 2025-10-16 09:18:13 + {"version":"1.0","complexObjectSchema":{"FlowDesigner:FD5ec7d53263283610ab9a4531151e8ce7":{"code":"Integer","code.$field_facets":{"SimpleMapFacet":"{\"uiTypeLabel\":\"Integer\",\"read_only\":\"false\",\"hint\":\"\",\"uiType\":\"integer\",\"choiceOption\":\"\",\"default_value\":\"\",\"label\":\"Code\",\"action_error_output\":\"true\",\"mandatory\":\"false\",\"order\":\"1\",\"max_length\":\"40\"}"},"message":"String","message.$field_facets":{"SimpleMapFacet":"{\"uiTypeLabel\":\"String\",\"read_only\":\"false\",\"hint\":\"\",\"uiType\":\"string\",\"choiceOption\":\"\",\"default_value\":\"\",\"label\":\"Message\",\"action_error_output\":\"true\",\"mandatory\":\"false\",\"order\":\"2\",\"max_length\":\"4000\"}"}},"FlowDesigner:FD5ec7d53263283610ab9a4531151e8ce7.$type_facets":{"SimpleMapFacet":"{\"sourceId\":\"\",\"choiceOption\":\"\",\"default_value\":\"\",\"label\":\"Action Status\",\"action_error_output\":\"true\",\"mandatory\":\"false\",\"uiUniqueId\":\"c502cdeb-4cd9-4dc8-9330-7b083338e7c5\",\"uiTypeLabel\":\"Object\",\"co_type_name\":\"FD5ec7d53263283610ab9a4531151e8ce7\",\"element_mapping_provider\":\"com.glide.flow_design.action.data.FlowDesignVariableMapper\",\"read_only\":\"false\",\"sourceUiUniqueId\":\"\",\"sourceType\":\"\",\"hint\":\"\",\"uiType\":\"object\",\"order\":\"1\",\"max_length\":\"65000\"}"}},"serializationFormat":"JSON","complexObject":{"code":{"$cv":{"$c":"java.lang.String","$v":""}},"message":{"$cv":{"$c":"java.lang.String","$v":""}}}} + 5ec7d53283283610932c5529feaad3e8 + + + + + 39c7d53283283610932c5529feaad322 + 84b8c87e-f648-4b2f-9158-2c79023f2a81 + 1 + + + + + + + 1 + +
+ b51f683667003200553fafb49585ef3f + GokulkumarV + 2025-10-16 08:59:21 + 0ac7d53283283610932c5529feaad3b8 + 1 + b812ceb69337a210633378917cba10bc + GokulkumarV + 2025-10-16 08:59:21 + + + + sys_hub_step_instance + 0ac7d53283283610932c5529feaad3b8 + 300 + sys_variable_value + GokulkumarV + 2025-10-16 08:59:21 + 42c7d53283283610932c5529feaad3c2 + 0 + GokulkumarV + 2025-10-16 08:59:21 + description=fd-scripted^manager=fd-scripted^email=fd-scripted + fcbf6c3667003200553fafb49585ef2e + + + sys_hub_step_instance + 0ac7d53283283610932c5529feaad3b8 + 200 + sys_variable_value + GokulkumarV + 2025-10-16 08:59:21 + 8ac7d53283283610932c5529feaad3c2 + 0 + GokulkumarV + 2025-10-16 08:59:21 + sys_user_group + 3930d57267003200553fafb49585efc5 + + + + record + 0ac7d53283283610932c5529feaad3b8 + GokulkumarV + 2025-10-16 08:59:21 + cec7d53283283610932c5529feaad3c1 + 0 + GokulkumarV + 2025-10-16 08:59:21 + var__m_sys_flow_step_definition_input_b51f683667003200553fafb49585ef3f
+ {{action.assignment_group}} +
+ + table_name + 0ac7d53283283610932c5529feaad3b8 + GokulkumarV + 2025-10-16 08:59:21 + 46c7d53283283610932c5529feaad3c1 + 0 + GokulkumarV + 2025-10-16 08:59:21 + var__m_sys_flow_step_definition_input_b51f683667003200553fafb49585ef3f
+ +
+ + update_record_field_values + 0ac7d53283283610932c5529feaad3b8 + GokulkumarV + 2025-10-16 08:59:21 + 0ec7d53283283610932c5529feaad3c1 + 0 + GokulkumarV + 2025-10-16 08:59:21 + var__m_sys_flow_step_definition_input_b51f683667003200553fafb49585ef3f
+ +
+ + + + + + true + update_record_field_values + 0ac7d53283283610932c5529feaad3b8 + sys_hub_step_instance + + GokulkumarV + 2025-10-16 08:59:21 + 0ec7d53283283610932c5529feaad3bf + 0 + GokulkumarV + 2025-10-16 08:59:21 + + + 39c7d53283283610932c5529feaad322 + 36ec4c71-c8e6-4680-a1b9-5328f0364c6f + 1 + + + + + + + 2 + +
+ 106afb6647032200b4fad7527c9a71e7 + GokulkumarV + 2025-10-16 08:59:21 + 82c7d53283283610932c5529feaad3c4 + 4 + b812ceb69337a210633378917cba10bc + GokulkumarV + 2025-10-16 10:37:18 + + + + sys_hub_step_instance + 82c7d53283283610932c5529feaad3c4 + 600 + sys_variable_value + GokulkumarV + 2025-10-16 08:59:21 + 1ac7d53283283610932c5529feaad3d7 + 2 + GokulkumarV + 2025-10-16 10:36:50 + (function execute(inputs, outputs) { +// ... code ... +try { + var newMembershipObj = []; + while (inputs.groupMembers.next()){ + newMembershipObj.push(inputs.groupMembers.getUniqueValue()); + } + if(!gs.nil(newMembershipObj)){ + var newGrpMemebersList = newMembershipObj.toString().split(","); + var grpMembers = new GlideRecord('sys_user_grmember'); + grpMembers.addQuery('group', inputs.assignmentGroupID); + grpMembers.query(); + while (grpMembers.next()) { + var usrValue = grpMembers.getValue('user'); + var index = newGrpMemebersList.indexOf(usrValue); + if (index >= 0) { + newGrpMemebersList.splice(index, 1); + } else { + grpMembers.deleteRecord(); //delete unmatched member + } + } + //code for add the new group members which are not part in old group + if (newGrpMemebersList.length > 0) { + var grmem = new GlideRecord('sys_user_grmember'); + var usr = new GlideRecord('sys_user'); + usr.addQuery("sys_id", "IN", newGrpMemebersList.join() + ""); + usr.query(); + while (usr.next()) { + grmem.initialize(); + grmem.group = inputs.assignmentGroupID; + grmem.user = usr.sys_id; + grmem.insert(); + } + } + } + } catch (e) { + gs.info('updateGroupMembers had Error ' + e); + } + +})(inputs, outputs); + + 71aa7f6647032200b4fad7527c9a719b + + + sys_hub_step_instance + 82c7d53283283610932c5529feaad3c4 + 400 + sys_variable_value + GokulkumarV + 2025-10-16 08:59:21 + 56c7d53283283610932c5529feaad3d7 + 0 + GokulkumarV + 2025-10-16 08:59:21 + 35aa573fd7802200bdbaee5b5e610375 + f5e56d79b3101300176b051a16a8dce4 + + + + application + 82c7d53283283610932c5529feaad3c4 + GokulkumarV + 2025-10-16 08:59:21 + 12c7d53283283610932c5529feaad3d7 + 0 + GokulkumarV + 2025-10-16 08:59:21 + var__m_sys_flow_step_definition_input_106afb6647032200b4fad7527c9a71e7
+ +
+ + assignmentGroupID + 82c7d53283283610932c5529feaad3c4 + GokulkumarV + 2025-10-16 08:59:21 + 1ac7d53283283610932c5529feaad3d8 + 0 + GokulkumarV + 2025-10-16 08:59:21 + var__m_sys_hub_step_ext_input_82c7d53283283610932c5529feaad3c4
+ {{action.assignment_group.sys_id}} +
+ + groupMembers + 82c7d53283283610932c5529feaad3c4 + GokulkumarV + 2025-10-16 08:59:21 + 56c7d53283283610932c5529feaad3d8 + 0 + GokulkumarV + 2025-10-16 08:59:21 + var__m_sys_hub_step_ext_input_82c7d53283283610932c5529feaad3c4
+ {{action.members}} +
+ + script + 82c7d53283283610932c5529feaad3c4 + GokulkumarV + 2025-10-16 08:59:21 + d2c7d53283283610932c5529feaad3d7 + 0 + GokulkumarV + 2025-10-16 08:59:21 + var__m_sys_flow_step_definition_input_106afb6647032200b4fad7527c9a71e7
+ +
+ + + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=GUID,uiTypeLabel=Sys ID (GUID) + false + + + + + + + + + + + + + false + false + + + + assignmentGroupID + false + + + + false + + + GUID + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=glide_list,uiTypeLabel=List + false + + + + + + + + + + + + + false + false + + + + groupMembers + false + + + + false + + + glide_list + + + + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=reference,uiTypeLabel=Reference,uiUniqueId=9fc23d54-bcf7-4da8-bb5a-b06dcec8befc + false + + + + sys_user + + + + + + + + + false + false + + + + manager + false + + + + false + + + reference + + false + 32 + 39c7d53283283610932c5529feaad322 + 39c7d53283283610932c5529feaad322 + sys_hub_action_type_definition + var__m_sys_hub_action_input_39c7d53283283610932c5529feaad322 + + 2 + false + false + + sys_user + + false + + active=true + active=true + + + + false + false + sys_hub_action_input + GokulkumarV + 2025-10-16 08:59:21 + 02c7d53283283610932c5529feaad360 + 1 + + + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 08:59:21 + false + false + false + false + false + simple + false + script + + + false + + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=reference,uiTypeLabel=Reference,uiUniqueId=555b40ac-088d-4423-909a-070cd68d9281 + false + + + + sys_user_group + + + + + + + + + false + false + + + + assignment_group + false + + + + false + + + reference + + true + 32 + 39c7d53283283610932c5529feaad322 + 39c7d53283283610932c5529feaad322 + sys_hub_action_type_definition + var__m_sys_hub_action_input_39c7d53283283610932c5529feaad322 + + 1 + false + false + + sys_user_group + + false + + + + + + false + false + sys_hub_action_input + GokulkumarV + 2025-10-16 08:59:20 + 7dc7d53283283610932c5529feaad327 + 1 + + + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 08:59:21 + false + false + false + false + false + simple + false + script + + + false + + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=glide_list,uiTypeLabel=List,uiUniqueId=3d82ca8e-d749-46c4-b756-bdad2f4adb87 + false + + + + sys_user + + + + + + + + + false + false + + + + members + false + + + + false + + + glide_list + + false + 1024 + 39c7d53283283610932c5529feaad322 + 39c7d53283283610932c5529feaad322 + sys_hub_action_type_definition + var__m_sys_hub_action_input_39c7d53283283610932c5529feaad322 + + 5 + false + false + + sys_user + + false + + + + + + false + false + sys_hub_action_input + GokulkumarV + 2025-10-16 08:59:21 + 82c7d53283283610932c5529feaad392 + 1 + + + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 08:59:21 + false + false + false + false + false + simple + false + script + + + false + + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=email,uiTypeLabel=Email,uiUniqueId=21aace78-585d-4f80-9c77-1cb075a4670e + false + + + + + + + + + + + + + false + false + + + + group_email + false + + + + false + + + email + + false + 40 + 39c7d53283283610932c5529feaad322 + 39c7d53283283610932c5529feaad322 + sys_hub_action_type_definition + var__m_sys_hub_action_input_39c7d53283283610932c5529feaad322 + + 4 + false + false + + + + false + + + + + + false + false + sys_hub_action_input + GokulkumarV + 2025-10-16 08:59:21 + 8ec7d53283283610932c5529feaad368 + 0 + + + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 08:59:21 + false + false + false + false + false + simple + false + script + + + false + + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=string,uiTypeLabel=String,uiUniqueId=4ea9d185-32dd-4978-8f92-70a861735051 + false + + + + + + + + + + + + + false + false + + + + description + false + + + + false + + + string + + false + 8000 + 39c7d53283283610932c5529feaad322 + 39c7d53283283610932c5529feaad322 + sys_hub_action_type_definition + var__m_sys_hub_action_input_39c7d53283283610932c5529feaad322 + + 3 + false + false + + + + false + + + + + + false + false + sys_hub_action_input + GokulkumarV + 2025-10-16 08:59:21 + cec7d53283283610932c5529feaad364 + 0 + + + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 08:59:21 + false + false + false + false + false + simple + false + script + + + false + + + + + + + true + false + false + action_error_output=true,co_type_name=FD5ec7d53263283610ab9a4531151e8ce7,element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=object,uiTypeLabel=Object,uiUniqueId=c502cdeb-4cd9-4dc8-9330-7b083338e7c5 + false + + + + + + + + + + + + + false + false + + + + __action_status__ + + false + + + + false + + + + string + + false + 65000 + 39c7d53283283610932c5529feaad322 + 39c7d53283283610932c5529feaad322 + sys_hub_action_type_definition + var__m_sys_hub_action_output_39c7d53283283610932c5529feaad322 + + 1 + false + false + + + + false + + + + + + false + false + sys_hub_action_output + GokulkumarV + 2025-10-16 08:59:22 + 5ec7d53283283610932c5529feaad3e8 + 0 + + + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 08:59:22 + false + false + false + false + false + simple + false + script + + + false + + + + + true + false + false + action_error_output=true,element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=boolean,uiTypeLabel=True/False,uiUniqueId=6da42402-0c9e-4974-a8a4-5e8ddefec391,visible_in_ui=false + false + + + + + + + + true + + + + + false + false + + + + __dont_treat_as_error__ + + false + + + + false + + + + boolean + + false + 40 + 39c7d53283283610932c5529feaad322 + 39c7d53283283610932c5529feaad322 + sys_hub_action_type_definition + var__m_sys_hub_action_output_39c7d53283283610932c5529feaad322 + + 2 + false + false + + + + false + + + + + + false + false + sys_hub_action_output + GokulkumarV + 2025-10-16 08:59:22 + 92c7d53283283610932c5529feaad3ee + 15 + + + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 10:39:55 + false + false + false + false + false + simple + false + script + + + false + + + + + + + 39c7d53283283610932c5529feaad322 + GokulkumarV + 2025-10-16 08:59:22 + d2c7d53283283610932c5529feaad3fb + 0 + GokulkumarV + 2025-10-16 08:59:22 + + + + description + + + + en + var__m_sys_hub_action_input_39c7d53283283610932c5529feaad322 + + sys_documentation + GokulkumarV + 2025-10-16 08:59:21 + 42c7d53283283610932c5529feaad368 + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 08:59:21 + + + + + group_email + + + + en + var__m_sys_hub_action_input_39c7d53283283610932c5529feaad322 + + sys_documentation + GokulkumarV + 2025-10-16 08:59:21 + 46c7d53283283610932c5529feaad391 + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 08:59:21 + + + + + members + + + + en + var__m_sys_hub_action_input_39c7d53283283610932c5529feaad322 + + sys_documentation + GokulkumarV + 2025-10-16 08:59:21 + 4ac7d53283283610932c5529feaad397 + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 08:59:21 + + + + + manager + + + + en + var__m_sys_hub_action_input_39c7d53283283610932c5529feaad322 + + sys_documentation + GokulkumarV + 2025-10-16 08:59:21 + 82c7d53283283610932c5529feaad364 + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 08:59:21 + + + + + assignment_group + + + + en + var__m_sys_hub_action_input_39c7d53283283610932c5529feaad322 + + sys_documentation + GokulkumarV + 2025-10-16 08:59:21 + c2c7d53283283610932c5529feaad35f + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 08:59:21 + + + + + + __action_status__ + + + + en + var__m_sys_hub_action_output_39c7d53283283610932c5529feaad322 + + sys_documentation + GokulkumarV + 2025-10-16 08:59:22 + 56c7d53283283610932c5529feaad3ed + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 08:59:22 + + + + + __dont_treat_as_error__ + + + + en + var__m_sys_hub_action_output_39c7d53283283610932c5529feaad322 + + sys_documentation + GokulkumarV + 2025-10-16 08:59:22 + 5ec7d53283283610932c5529feaad3f3 + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 08:59:22 + + + + + + + 39c7d53283283610932c5529feaad322 + {"type":"PlanProxy","persistor":{"@class":".ChunkingPlanPersistor","table":"sys_hub_action_plan","id":"d71c55f683203210932c5529feaad328","name":"plan","plan_signature":null}} + 3bcee9be83243210932c5529feaad3d0 + GokulkumarV + 2025-10-16 09:18:16 + global + / + d71c55f683203210932c5529feaad328 + 4 + + + GokulkumarV + 2025-10-16 10:39:58 + + + public + + + + + {labelCacheCleanUpExecuted=true} + 28100 + false + + 52bcdf56832cf210932c5529feaad395 + + This action is used to update any assignment group for the following +- Manager +- Description +- Group Email +- Members of the Group + + copy_of_update_assignment_group + [{"name":"{{action.assignment_group}}","label":"action➛Assignment Group","type":"action","ref":"","reference_display":"Group","base_type":"reference","parent_table_name":"","column_name":"","choices":null,"attributes":{}},{"name":"{{action.manager}}","label":"action➛Manager","type":"action","ref":"","reference_display":"User","base_type":"reference","parent_table_name":"","column_name":"","choices":null,"attributes":{}},{"name":"{{action.description}}","label":"action➛Description","type":"action","ref":"","reference_display":"","base_type":"string","parent_table_name":"","column_name":"","choices":null,"attributes":{}},{"name":"{{action.group_email}}","label":"action➛Group Email","type":"action","ref":"","reference_display":"","base_type":"email","parent_table_name":"","column_name":"","choices":null,"attributes":{}},{"name":"{{action.type}}","label":"action➛Type","type":"action","ref":"","reference_display":"","base_type":"string","parent_table_name":"","column_name":"","choices":null,"attributes":{}},{"name":"{{action.members}}","label":"action➛Members","type":"action","ref":"","reference_display":"User","base_type":"glide_list","parent_table_name":"","column_name":"","choices":null,"attributes":{}},{"name":"{{action.record}}","label":"action➛record","type":"action","ref":"","reference_display":"","base_type":"document_id","parent_table_name":"","column_name":"","choices":null,"attributes":{}},{"name":"{{action.assignment_group.sys_id}}","label":"action➛Assignment Group➛Sys ID","type":"action","ref":"","reference_display":"Sys ID","base_type":"GUID","parent_table_name":"sys_user_group","column_name":"sys_id","choices":null,"attributes":{}}] + true + Update Assignment Group + + + 39c7d53283283610932c5529feaad322 + sys_hub_action_type_snapshot + GokulkumarV + 2025-10-16 09:18:14 + global + / + 721c15f683203210932c5529feaad31d + 1 + + + + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 10:39:56 + false + + + + + + sys_hub_action_type_snapshot + 721c15f683203210932c5529feaad31d + 1 + sys_variable_value + GokulkumarV + 2025-10-16 09:18:15 + 8f1c15f683203210932c5529feaad3e5 + 0 + GokulkumarV + 2025-10-16 09:18:15 + {"version":"1.0","complexObjectSchema":{"FlowDesigner:FDACTIONSTATUS":{"code":"Integer","code.$field_facets":{"SimpleMapFacet":"{\"uiTypeLabel\":\"Integer\",\"read_only\":\"false\",\"hint\":\"\",\"uiType\":\"integer\",\"default_value\":\"\",\"label\":\"Code\",\"action_error_output\":\"true\",\"mandatory\":\"false\",\"order\":\"1\",\"max_length\":\"40\"}"},"message":"String","message.$field_facets":{"SimpleMapFacet":"{\"uiTypeLabel\":\"String\",\"read_only\":\"false\",\"hint\":\"\",\"uiType\":\"string\",\"default_value\":\"\",\"label\":\"Message\",\"action_error_output\":\"true\",\"mandatory\":\"false\",\"order\":\"2\",\"max_length\":\"4000\"}"}},"FlowDesigner:FDACTIONSTATUS.$type_facets":{"SimpleMapFacet":"{\"default_value\":\"\",\"label\":\"Action Status\",\"action_error_output\":\"true\",\"mandatory\":\"false\",\"uiUniqueId\":\"794bc342-9c9d-444b-a3f2-dd4b6a5a0173\",\"uiTypeLabel\":\"Object\",\"co_type_name\":\"FDACTIONSTATUS\",\"element_mapping_provider\":\"com.glide.flow_design.action.data.FlowDesignVariableMapper\",\"read_only\":\"false\",\"hint\":null,\"uiType\":\"object\",\"order\":\"1\",\"max_length\":\"65000\"}"}},"serializationFormat":"JSON","complexObject":{"code":{"$cv":{"$c":"java.lang.String","$v":""}},"message":{"$cv":{"$c":"java.lang.String","$v":""}}}} + 031c15f683203210932c5529feaad3ca + + + sys_hub_action_type_snapshot + 721c15f683203210932c5529feaad31d + 2 + sys_variable_value + GokulkumarV + 2025-10-16 09:18:15 + cb1c15f683203210932c5529feaad3e5 + 0 + GokulkumarV + 2025-10-16 09:18:15 + 0 + cb1c15f683203210932c5529feaad3db + + + + + 721c15f683203210932c5529feaad31d + 84b8c87e-f648-4b2f-9158-2c79023f2a81 + 1 + + + + + + + 1 + +
+ b51f683667003200553fafb49585ef3f + GokulkumarV + 2025-10-16 09:18:15 + 321c15f683203210932c5529feaad375 + 1 + b812ceb69337a210633378917cba10bc + GokulkumarV + 2025-10-16 09:18:15 + + + + sys_hub_step_instance + 321c15f683203210932c5529feaad375 + 200 + sys_variable_value + GokulkumarV + 2025-10-16 09:18:15 + b21c15f683203210932c5529feaad37f + 0 + GokulkumarV + 2025-10-16 09:18:15 + sys_user_group + 3930d57267003200553fafb49585efc5 + + + sys_hub_step_instance + 321c15f683203210932c5529feaad375 + 300 + sys_variable_value + GokulkumarV + 2025-10-16 09:18:15 + ba1c15f683203210932c5529feaad37e + 0 + GokulkumarV + 2025-10-16 09:18:15 + description=fd-scripted^manager=fd-scripted^email=fd-scripted + fcbf6c3667003200553fafb49585ef2e + + + + record + 321c15f683203210932c5529feaad375 + GokulkumarV + 2025-10-16 09:18:15 + 3a1c15f683203210932c5529feaad37e + 0 + GokulkumarV + 2025-10-16 09:18:15 + var__m_sys_flow_step_definition_input_b51f683667003200553fafb49585ef3f
+ {{action.assignment_group}} +
+ + table_name + 321c15f683203210932c5529feaad375 + GokulkumarV + 2025-10-16 09:18:15 + 3e1c15f683203210932c5529feaad37d + 0 + GokulkumarV + 2025-10-16 09:18:15 + var__m_sys_flow_step_definition_input_b51f683667003200553fafb49585ef3f
+ +
+ + update_record_field_values + 321c15f683203210932c5529feaad375 + GokulkumarV + 2025-10-16 09:18:15 + 761c15f683203210932c5529feaad37e + 0 + GokulkumarV + 2025-10-16 09:18:15 + var__m_sys_flow_step_definition_input_b51f683667003200553fafb49585ef3f
+ +
+ + + + + + true + update_record_field_values + 321c15f683203210932c5529feaad375 + sys_hub_step_instance + + GokulkumarV + 2025-10-16 09:18:15 + 721c15f683203210932c5529feaad37c + 0 + GokulkumarV + 2025-10-16 09:18:15 + + + 721c15f683203210932c5529feaad31d + 36ec4c71-c8e6-4680-a1b9-5328f0364c6f + 1 + + + + + + + 2 + +
+ 106afb6647032200b4fad7527c9a71e7 + GokulkumarV + 2025-10-16 09:18:15 + fa1c15f683203210932c5529feaad380 + 4 + b812ceb69337a210633378917cba10bc + GokulkumarV + 2025-10-16 10:37:19 + + + + sys_hub_step_instance + fa1c15f683203210932c5529feaad380 + 600 + sys_variable_value + GokulkumarV + 2025-10-16 09:18:15 + 4f1c15f683203210932c5529feaad3c5 + 2 + GokulkumarV + 2025-10-16 10:36:52 + (function execute(inputs, outputs) { +// ... code ... +try { + var newMembershipObj = []; + while (inputs.groupMembers.next()){ + newMembershipObj.push(inputs.groupMembers.getUniqueValue()); + } + if(!gs.nil(newMembershipObj)){ + var newGrpMemebersList = newMembershipObj.toString().split(","); + var grpMembers = new GlideRecord('sys_user_grmember'); + grpMembers.addQuery('group', inputs.assignmentGroupID); + grpMembers.query(); + while (grpMembers.next()) { + var usrValue = grpMembers.getValue('user'); + var index = newGrpMemebersList.indexOf(usrValue); + if (index >= 0) { + newGrpMemebersList.splice(index, 1); + } else { + grpMembers.deleteRecord(); //delete unmatched member + } + } + //code for add the new group members which are not part in old group + if (newGrpMemebersList.length > 0) { + var grmem = new GlideRecord('sys_user_grmember'); + var usr = new GlideRecord('sys_user'); + usr.addQuery("sys_id", "IN", newGrpMemebersList.join() + ""); + usr.query(); + while (usr.next()) { + grmem.initialize(); + grmem.group = inputs.assignmentGroupID; + grmem.user = usr.sys_id; + grmem.insert(); + } + } + } + } catch (e) { + gs.info('updateGroupMembers had Error ' + e); + } + +})(inputs, outputs); + + 71aa7f6647032200b4fad7527c9a719b + + + sys_hub_step_instance + fa1c15f683203210932c5529feaad380 + 400 + sys_variable_value + GokulkumarV + 2025-10-16 09:18:15 + 8b1c15f683203210932c5529feaad3c5 + 0 + GokulkumarV + 2025-10-16 09:18:15 + 35aa573fd7802200bdbaee5b5e610375 + f5e56d79b3101300176b051a16a8dce4 + + + + application + fa1c15f683203210932c5529feaad380 + GokulkumarV + 2025-10-16 09:18:15 + 471c15f683203210932c5529feaad3c5 + 0 + GokulkumarV + 2025-10-16 09:18:15 + var__m_sys_flow_step_definition_input_106afb6647032200b4fad7527c9a71e7
+ +
+ + assignmentGroupID + fa1c15f683203210932c5529feaad380 + GokulkumarV + 2025-10-16 09:18:15 + 4f1c15f683203210932c5529feaad3c6 + 0 + GokulkumarV + 2025-10-16 09:18:15 + var__m_sys_hub_step_ext_input_fa1c15f683203210932c5529feaad380
+ {{action.assignment_group.sys_id}} +
+ + groupMembers + fa1c15f683203210932c5529feaad380 + GokulkumarV + 2025-10-16 09:18:15 + 8b1c15f683203210932c5529feaad3c6 + 0 + GokulkumarV + 2025-10-16 09:18:15 + var__m_sys_hub_step_ext_input_fa1c15f683203210932c5529feaad380
+ {{action.members}} +
+ + script + fa1c15f683203210932c5529feaad380 + GokulkumarV + 2025-10-16 09:18:15 + 0b1c15f683203210932c5529feaad3c5 + 0 + GokulkumarV + 2025-10-16 09:18:15 + var__m_sys_flow_step_definition_input_106afb6647032200b4fad7527c9a71e7
+ +
+ + + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=GUID,uiTypeLabel=Sys ID (GUID) + false + + + + + + + + + + + + + false + false + + + + assignmentGroupID + false + + + + false + + + GUID + + true + 32 + fa1c15f683203210932c5529feaad380 + fa1c15f683203210932c5529feaad380 + sys_hub_step_instance + var__m_sys_hub_step_ext_input_fa1c15f683203210932c5529feaad380 + + 100 + false + false + + + + false + + + + + + false + false + sys_hub_step_ext_input + GokulkumarV + 2025-10-16 09:18:15 + 0b1c15f683203210932c5529feaad389 + 0 + + + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 09:18:15 + false + false + false + false + false + simple + false + script + + + false + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=glide_list,uiTypeLabel=List + false + + + + + + + + + + + + + false + false + + + + groupMembers + false + + + + false + + + glide_list + + true + 1024 + fa1c15f683203210932c5529feaad380 + fa1c15f683203210932c5529feaad380 + sys_hub_step_instance + var__m_sys_hub_step_ext_input_fa1c15f683203210932c5529feaad380 + + 0 + false + false + + sys_user + + false + + + + + + false + false + sys_hub_step_ext_input + GokulkumarV + 2025-10-16 09:18:15 + fe1c15f683203210932c5529feaad384 + 0 + + + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 09:18:15 + false + false + false + false + false + simple + false + script + + + false + + + + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=string,uiTypeLabel=String,uiUniqueId=4ea9d185-32dd-4978-8f92-70a861735051 + false + + + + + + + + + + + + + false + false + + + + description + false + + + + false + + + string + + false + 8000 + 721c15f683203210932c5529feaad31d + 721c15f683203210932c5529feaad31d + sys_hub_action_type_snapshot + var__m_sys_hub_action_input_721c15f683203210932c5529feaad31d + + 3 + false + false + + + + false + + + + + + false + false + sys_hub_action_input + GokulkumarV + 2025-10-16 09:18:14 + 7e1c15f683203210932c5529feaad361 + 0 + + + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 09:18:14 + false + false + false + false + false + simple + false + script + + + false + + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=email,uiTypeLabel=Email,uiUniqueId=21aace78-585d-4f80-9c77-1cb075a4670e + false + + + + + + + + + + + + + false + false + + + + group_email + false + + + + false + + + email + + false + 40 + 721c15f683203210932c5529feaad31d + 721c15f683203210932c5529feaad31d + sys_hub_action_type_snapshot + var__m_sys_hub_action_input_721c15f683203210932c5529feaad31d + + 4 + false + false + + + + false + + + + + + false + false + sys_hub_action_input + GokulkumarV + 2025-10-16 09:18:14 + ba1c15f683203210932c5529feaad365 + 0 + + + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 09:18:14 + false + false + false + false + false + simple + false + script + + + false + + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=reference,uiTypeLabel=Reference,uiUniqueId=9fc23d54-bcf7-4da8-bb5a-b06dcec8befc + false + + + + sys_user + + + + + + + + + false + false + + + + manager + false + + + + false + + + reference + + false + 32 + 721c15f683203210932c5529feaad31d + 721c15f683203210932c5529feaad31d + sys_hub_action_type_snapshot + var__m_sys_hub_action_input_721c15f683203210932c5529feaad31d + + 2 + false + false + + sys_user + + false + + active=true + active=true + + + + false + false + sys_hub_action_input + GokulkumarV + 2025-10-16 09:18:14 + be1c15f683203210932c5529feaad35c + 1 + + + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 09:18:14 + false + false + false + false + false + simple + false + script + + + false + + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=reference,uiTypeLabel=Reference,uiUniqueId=555b40ac-088d-4423-909a-070cd68d9281 + false + + + + sys_user_group + + + + + + + + + false + false + + + + assignment_group + false + + + + false + + + reference + + true + 32 + 721c15f683203210932c5529feaad31d + 721c15f683203210932c5529feaad31d + sys_hub_action_type_snapshot + var__m_sys_hub_action_input_721c15f683203210932c5529feaad31d + + 1 + false + false + + sys_user_group + + false + + + + + + false + false + sys_hub_action_input + GokulkumarV + 2025-10-16 09:18:14 + f61c15f683203210932c5529feaad352 + 1 + + + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 09:18:14 + false + false + false + false + false + simple + false + script + + + false + + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=glide_list,uiTypeLabel=List,uiUniqueId=3d82ca8e-d749-46c4-b756-bdad2f4adb87 + false + + + + sys_user + + + + + + + + + false + false + + + + members + false + + + + false + + + glide_list + + false + 1024 + 721c15f683203210932c5529feaad31d + 721c15f683203210932c5529feaad31d + sys_hub_action_type_snapshot + var__m_sys_hub_action_input_721c15f683203210932c5529feaad31d + + 5 + false + false + + sys_user + + false + + + + + + false + false + sys_hub_action_input + GokulkumarV + 2025-10-16 09:18:14 + f61c15f683203210932c5529feaad369 + 1 + + + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 09:18:14 + false + false + false + false + false + simple + false + script + + + false + + + + + true + false + false + action_error_output=true,co_type_name=FDACTIONSTATUS,element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=object,uiTypeLabel=Object,uiUniqueId=c502cdeb-4cd9-4dc8-9330-7b083338e7c5 + false + + + + + + + + + + + + + false + false + + + + __action_status__ + + false + + + + false + + + + string + + false + 65000 + 721c15f683203210932c5529feaad31d + 721c15f683203210932c5529feaad31d + sys_hub_action_type_snapshot + var__m_sys_hub_action_output_721c15f683203210932c5529feaad31d + + 1 + false + false + + + + false + + + + + + false + false + sys_hub_action_output + GokulkumarV + 2025-10-16 09:18:15 + 031c15f683203210932c5529feaad3ca + 0 + + + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 09:18:15 + false + false + false + false + false + simple + false + script + + + false + + + + + true + false + false + action_error_output=true,element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=boolean,uiTypeLabel=True/False,uiUniqueId=6da42402-0c9e-4974-a8a4-5e8ddefec391,visible_in_ui=false + false + + + + + + + + true + + + + + false + false + + + + __dont_treat_as_error__ + + false + + + + false + + + + boolean + + false + 40 + 721c15f683203210932c5529feaad31d + 721c15f683203210932c5529feaad31d + sys_hub_action_type_snapshot + var__m_sys_hub_action_output_721c15f683203210932c5529feaad31d + + 2 + false + false + + + + false + + + + + + false + false + sys_hub_action_output + GokulkumarV + 2025-10-16 09:18:15 + cb1c15f683203210932c5529feaad3db + 9 + + + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 10:39:57 + false + false + false + false + false + simple + false + script + + + false + + + + + + + 721c15f683203210932c5529feaad31d + GokulkumarV + 2025-10-16 09:18:15 + 871c15f683203210932c5529feaad3e7 + 0 + GokulkumarV + 2025-10-16 09:18:15 + + + + manager + + + + en + var__m_sys_hub_action_input_721c15f683203210932c5529feaad31d + + sys_documentation + GokulkumarV + 2025-10-16 09:18:14 + 321c15f683203210932c5529feaad361 + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 09:18:14 + + + + + members + + + + en + var__m_sys_hub_action_input_721c15f683203210932c5529feaad31d + + sys_documentation + GokulkumarV + 2025-10-16 09:18:15 + 3e1c15f683203210932c5529feaad36e + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 09:18:15 + + + + + description + + + + en + var__m_sys_hub_action_input_721c15f683203210932c5529feaad31d + + sys_documentation + GokulkumarV + 2025-10-16 09:18:14 + 7e1c15f683203210932c5529feaad364 + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 09:18:14 + + + + + group_email + + + + en + var__m_sys_hub_action_input_721c15f683203210932c5529feaad31d + + sys_documentation + GokulkumarV + 2025-10-16 09:18:14 + ba1c15f683203210932c5529feaad368 + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 09:18:14 + + + + + assignment_group + + + + en + var__m_sys_hub_action_input_721c15f683203210932c5529feaad31d + + sys_documentation + GokulkumarV + 2025-10-16 09:18:14 + fa1c15f683203210932c5529feaad35b + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 09:18:14 + + + + + + __action_status__ + + + + en + var__m_sys_hub_action_output_721c15f683203210932c5529feaad31d + + sys_documentation + GokulkumarV + 2025-10-16 09:18:15 + 8f1c15f683203210932c5529feaad3da + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 09:18:15 + + + + + __dont_treat_as_error__ + + + + en + var__m_sys_hub_action_output_721c15f683203210932c5529feaad31d + + sys_documentation + GokulkumarV + 2025-10-16 09:18:15 + cb1c15f683203210932c5529feaad3e0 + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + GokulkumarV + 2025-10-16 09:18:15 + + + + + + 39c7d53283283610932c5529feaad322 + 721c15f683203210932c5529feaad31d + glide-zurich-07-01-2025__patch1-08-20-2025_09-08-2025_1328.zip + +