Replace '\' with '\\'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2024 08:14 AM
I need to replace '\' with '\\'. How can we do it? Currently I am using :
replace("\", "\\"));

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2024 08:25 AM
Hi there,
Where do you want to apply this?
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2024 08:31 AM
I am using it in json payload

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2024 08:40 AM
Where?
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2024 10:13 AM
"{\"firstName\":\"John\",\"lastName\":\"Doe\",
\"executiveSummary\":\"Below, you will find a proposal, etc. etc.\",
\"products\":[{\"name\":\"test product\",\"quantity\":5,\"price\":10,\"total\":50},
{\"name\":\"Creatice Name\",\"quantity\":10,\"price\":20,\"total\":200}]}",
}