- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2018 05:45 AM
Hi,
I am passing value from script include to "Mid server" script include.I need to check whether the passed in value has been received correctly.I used "This.log" in the mid server script include where do i go to check this.
logged script:
this.retry_Interval = probe.getParameter("retry_Interval"); //To get interval value of 20s
this.log('testMid retry_Interval : '+this.retry_Interval);
Thanks,
Revathy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2018 06:30 AM
Hi Revathy,
this.log won't work. For adding logs to mid server use ms.log();
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2018 06:16 AM
Perhaps this may assist you?
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2018 06:30 AM
Hi Revathy,
this.log won't work. For adding logs to mid server use ms.log();
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2018 08:30 AM
Thanks,
i have another question too..
I am passing an integer value to the mid server script include.when i tried to check on then logs i can see the value as null.
Script include:
var jp = new JavascriptProbe(request[1]);
jp.setName("FileBuilderFileCopy");
jp.setJavascript("var req = new FileBuilderFileCopy();");
jp.addParameter("retry_Interval", 20);
jp.create();
Mid server script include:
this.retry_Interval = probe.getParameter("retry_Interval"); //To get interval value of 20
ms.log('testMid retry_Interval : '+this.retry_Interval);
log:
testMid retry_Interval : null