- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2020 01:57 AM
Hi There
REST OUTBOUND MESSAGE JSON FORMAT to mid server to runbook
i am trying to pass a
value parameter FolderPath = G:\ak\shared18
it works if the user type in
G:\\ak\\shared18
i still want the user to type in G:\ak\shared18, is there a way around this
do i modify the outbound message to pass thru a escape character
Thanks
Levino
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2020 01:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2020 04:37 AM
Yes, that is correct. As mentioned by
Simple example:
https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_replace3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2020 06:37 PM
Hi there
i have added this to the onsubmit client script
the change does not seem to reflect in the description field of the requested item
e.g.
New Folder Path: g:\ad\gpam
am i missing something?
Thanks
levino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2020 12:58 AM
Actually, it should work. Create a run script activity in workflow and apply the string manipulation.
var str = current.variables.new_folder_path;
var res = str.replace(/\//gi, "\\\\");
current.variables.new_folder_path = res;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2020 07:16 PM
function onSubmit() {
//Type appropriate comment here, and begin script below
var str = g_form.getValue('new_folder_path');
var res = str.replace(/\//gi, "\\\\");
g_form.setValue('new_folder_path',res);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2020 01:14 AM
How will you decode the fields inside the description tag?
{
short_description: <text>,
description:
{
status:<status>,
priority:<priority>,
source:<source>
}
}