and more in a single search tool across platforms. Read the announcement here. |
03/21/2024 10:05 AM
Hi Team,
We have a use case to create account in AD endpoint through request originated from ServiceNow.
While placing a request on Snow side, if the requestor is mentioning multiple lines/blank lines in the description field, then Saviynt is unable to process the create account task, as we are passing this description in the create account JSON with help of a dynamic attribute.
In the logs we can see the error : Error parsing JSON /JSONException: Unterminated string
Can you please help us on how to handle this?
Thanks
Solved! Go to Solution.
03/21/2024 11:38 AM
share json
03/21/2024 07:12 PM - edited 03/21/2024 07:12 PM
${org.apache.commons.lang.StringEscapeUtils.escapeJava(reqAttrs.customproperty10)}
03/22/2024 05:33 AM - edited 03/22/2024 05:35 AM
@rushikeshvartak Thank you for the response. In the reference link above it is mentioned as in REST connections.
will it also work for connection type AD? as we are getting same error in logs with this as well.
Thanks
03/24/2024 07:57 PM
You can try and let us know if error changes.
03/24/2024 08:11 PM
@rushikeshvartak We tried as below, after that only I have shared above error from logs which is same.
Please let us know, if something we are missing.
Thanks
03/24/2024 08:14 PM
description.replaceAll("[^\\x00-\\x7F]", "").replaceAll("[\n\r]", "").trim()
03/29/2024 03:16 AM
@rushikeshvartak Thanks a lot! this is working.