Hi Team, I am trying to seek your help in creating Servicenow ticket through SDIM , I am getting some values which are not suppressed to be pass. Like groups although this value is not there in create account but we are creating servicenow ticket via ARS, I understand it is taking reference of group whatever we have requested but there should be way to filter some data. I have tried to use one script to avoid the groups data to transits.
Below is my Script. #foreach($request in $plan.requests) #if($request.items) Please find below the details for new hire :$newline #foreach($item in $request.items) #if( $item.name != “groups”) ${item.name} : ${item.value}#end $newline #end#end#end
When I tried this script it threw some unwanted errors on description.
Try modifying your statement to look to see if $item.name equals “groups” and return a blank. Follow that by an $else statement with your ${item.name} : ${item.value}.
#foreach($request in $plan.requests) #if($request.items) Please find below the details for new hire :$newline #foreach($item in $request.items) #if( $item.name == “groups”) $else ${item.name} : ${item.value}#end $newline #end #end #end
@Carlatto Thanks for providing hint , I tried similar approach just with slight change in this script, I changed “groups” to ‘groups’ replaced double commas with single , and it worked for me :), Thanks a lot for looking into this.
@Carlatto do you have any idea how we can pass additional data into ServiceNow ticket using SDIM , ServiceNow team has created few fields like email, UPN where we need to pass the information from SailPoint, Any idea how to add additional field ? In configuration I can see there is option to add field : Single, Multi options are being available, but its not allowing me to save additional fields using this option, I referred to this link for Create a Ticket