Click HERE to see how Saviynt Intelligence is transforming the industry. |
06/11/2024 11:23 AM - edited 06/11/2024 12:23 PM
I have multiple dynamic attributes defined at the endpoint level, for multiple endpoints for which servicenow is our connection, I want to send all dynamic attribute defined at the endpoint level, regardless of the endpoint via create ticket json how do I do this? something like what 'allEntitlementsValue' does but for reqAttrs.
ex:
to be able to iterate through all values of the map and output
"key1: value1 ; key2: value2", etc
Solved! Go to Solution.
06/12/2024 12:03 AM
@theosveg below article will use full
06/12/2024 08:03 AM
thank you, I am looking to see if there is way to iterate through the list than hardcode it, as the number of dynamic attributes vary per application
06/13/2024 09:49 AM
@theosveg try
requestAccessAttributes.get('abc').split(',').collect { it.trim() }
06/13/2024 12:15 PM
we realized just ${requestAccessAttributes} or {reqAttrs} does exactly that.
06/14/2024 12:02 PM - edited 06/14/2024 12:03 PM
Here is a way to filter out some of the values that are automatically added by Saviynt without being defined in the form:
${String v = ''; requestAccessAttributes.each{(it.key != 'REQUESTORIGIN' && it.key != 'ACCOUNTNAME' && it.key != 'ENDPOINT') ? v+=it.key + ': ' + it.value + '; ' : ''}; return v;}