The CreatorCon Call for Content is officially open! Get started here.

Call Rest API from Script include from flow designer without integration hub

Indira8
Kilo Sage

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

5 REPLIES 5

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;