how to omit (" , ' ) and other punctuations from blocking the transmission in integration.

sharley
Tera Contributor

Hi,

 

I am using post rest message to transmit data from servicenow to another tool.

example, if we have an incident where  the short description or description has any punctuation like single quotes or double quotes, the data is being blocked from transmission.

 

Please help me with possible solution of transmitting the data successfully even when the single/double quotes and other punctuations are used. maybe something like ignoring those punctuations while transmitting or any other better options for transmitting the data with those punctuations.

 

Thanks,

Sharley

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@sharley 

you should use setStringParameterNoEscape() in your REST Message script

setStringParameterNoEscape() -> allows entering special character and in case you want to send that special character as it is without escaping

share your script here as well.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader