02/06/2023 08:05 AM
Hi Team,
Our customer has a requirement to pass the comments and justifications from requests to pass through to the ServiceNow ticket.Around 2 years ago ,we had already opened a ticket with Saviynt Support with Saviynt Support and we received a response that this is part of 6.1 roadmap plan.
So our customer would like to know if any enhancements are available around the same.
Do we now have any updates on the same?
We are still in 3.12.14
Thanks
Shyam
Solved! Go to Solution.
02/06/2023 11:48 AM
I believe this ideas ticket refers to the same issue you mentioned - https://ideas.saviynt.com/ideas/EIC-I-3376.
Looks like the idea is accepted.
02/06/2023 05:34 PM
02/07/2023 07:07 AM
Thank you Rushikesh and Sivagami for your responses.We are currently reviewing the link shared in Ideas portal and probably do a quick testing for passing the comments.
Since our DEV env is currently down, we are waiting to get it tested and will come back to confirm.
Thanks
Shyam
02/20/2023 07:38 AM
Hi Team
We tried using below condition in createaccountJSON of servicenow connector but it did not work.
1. Could you please let us know if we are using the correct condition?
2. How to find out saviynt attribute (ex: task.requestKey?.comments? ) for the specific field
\\\\nComments : ${if(task.requestKey!=null){task.requestKey?.comments?.toString()} else('')}
02/23/2023 11:22 PM
Try with the below condition and see if its works
${task.requestKey==null?'':task.requestKey?.comments?.replaceAll('<.*?>','').replaceAll('\\n','').replaceAll('\\r','').replaceAll('[^ -~À-ÿ]+','').replaceAll(new String('XFw='.decodeBase64()),new String('XFxcXA=='.decodeBase64()))}
04/12/2023 04:28 PM
Hi @Darshanjain
The above syntax is working fine if there is any comments , If there is no comments in the request it is giving description as shown below. could you please suggest me the syntax to give null value if there is no comments
02/28/2023 07:04 AM
Hi @Darshanjain ,
Thank you for the reply.
02/28/2023 11:52 PM
Hi @Rachana , Happy to hear that above solution worked, Please mark it as solution so that it will help others.
Coming to optional comments these are stored in request access table under each row ( based on entitlements raised ), you can try these ${requestAccessAttributes.comments} or ${accessItems.collect{it.comments}}. You need to replace these attributes in place of tas.requestkey.
03/01/2023 10:55 AM
HI @Darshanjain ,
We tried out following syntaxes to pass optional comments from saviynt to servicenow But it did not work. Could you please correct if we are using incorrect syntax.
\\\\nComments : ${task.requestKey==null?'':accessItems.collect{it.comments}.replaceAll('<.*?>','').replaceAll('\\n','').replaceAll('\\r','').replaceAll('[^ -~À-ÿ]+','').replaceAll(new String('XFw='.decodeBase64()),new String('XFxcXA=='.decodeBase64()))}
\\\\nComments : ${task.requestKey==null?'':requestAccessAttributes.comments.replaceAll('<.*?>','').replaceAll('\\n','').replaceAll('\\r','').replaceAll('[^ -~À-ÿ]+','').replaceAll(new String('XFw='.decodeBase64()),new String('XFxcXA=='.decodeBase64()))}
03/03/2023 05:51 AM
Hi @Rachana
Right now this looks like it is not supported due to the fact that it is one to many mapping, Request key entry in request access table is multi compare to request table, right now it is not possible for optional comments to be passed under this.
If you still want it you can raise it in Ideas portal ( https://ideas.saviynt.com/ )
Thanks
Darshan