Call Rest API from Script include from flow designer without integration hub
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2022 09:00 AM
Hi All,
Could someone help me how to make Rest calls from Script include from flow designer for following flow :
We have the following workflow to update members of an entitlement on submitting a catalog request in servicenow :
1. Create a request to add members in an entitlement
2. Send for approvals and if the approval is done, then an API call has to be made from Script include function and trigger the Api call and the response from teh end point has to be updated in the RITM
3. Based on the response is success then we have to update the Entitlement table wiht the user list sent by the 3rd party and close the RITM otherwise failure , we have to create a manual task and assign to a particular group.
Could you please help me with the integration trigger without the integration hub
Thanks and Regards
- Labels:
-
Integrations
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2022 08:15 PM
Indira,
The script in Action won't work because the name of the Script Include is "IntegrationUtils" but the script is instancing as (oimIntegrationUtils).
var creategrp = new global.oimIntegrationUtils;