How to call mid server script include.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2018 11:52 AM
How to call the MID server script include - AmazonWebServicesRequestSigner. This is available in CloudAPI application.
How can I test it using scripts - background?
- Labels:
-
Integrations
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2018 09:44 PM
Hi Shalini,
hope below link will help you
https://community.servicenow.com/community?id=community_question&sys_id=23f84ba1db5cdbc01dcaf3231f961910
NOTE: Mark correct or helpful if it helps you.
Warm Regards,
Raj patel

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2018 09:47 PM
Hi
This would do your job :-

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2018 09:56 PM
Hi Shalini,
Please refer the below mentioned sample code.
var jpr = new JavascriptProbe('<name of the mid server>');
jpr.setName("testcopypoc");
jpr.setJavascript("var req = new cpy(); req.prnt();"); //cpy1 is mid server script include name and prnt is the function in include
jpr.addParameter("<parameter>", ''); //if you want to pass parameter to mid server
jpr.addParameter("skip_sensor", true);
jpr.create();
Hope this helps.
Regards,
Ujjawal