Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

how to send all dynamic attribute in create ticket json?

theosveg
Regular Contributor II
Regular Contributor II

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

5 REPLIES 5

Raghu
All-Star
All-Star

theosveg
Regular Contributor II
Regular Contributor II

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

@theosveg  try

requestAccessAttributes.get('abc').split(',').collect { it.trim() }


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

theosveg
Regular Contributor II
Regular Contributor II

we realized just ${requestAccessAttributes} or {reqAttrs} does exactly that. 

flegare
Regular Contributor III
Regular Contributor III

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;}