- 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-16-2020 04:51 PM
Hi there
i managed to update the script with the below but the job still fails, only if i add 2 backslashes on the UI then only it succeeds
if (current.variables.new_folder_path){
var str = current.variables.new_folder_path.toString();
var res = str.replace(/\//gi, "\\\\");
workflow.scratchpad.NewFolderPath = res;
} else {
workflow.scratchpad.NewFolderPath = '';
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2020 01:01 AM
Log a message to see what value is coming in the scratchpad variable. And, go to System logs --> All and search for source contains "Log msg for scratchpad".
if (current.variables.new_folder_path){
var str = current.variables.new_folder_path.toString();
var res = str.replace(/\//gi, "\\\\");
workflow.scratchpad.NewFolderPath = res;
workflow.info('Scratchpad variable:'+workflow.scratchpad.NewFolderPath);
gs.log(workflow.scratchpad.NewFolderPath,'Log msg for scratchpad');
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2020 02:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2020 05:02 PM
G:\ak\Shared01
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2020 09:02 PM
Hi there
i have tried looking under as suggested, cannot find the log, is there anything else i should do?
System log --> All and search for source contains "Log msg for scratchpad".