- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2019 08:06 PM
I created Flow Designer Action which call REST Message via Script Includes to send an outbound REST web service request to external system.
but, I got the error below
No IntegrationHub plugin is available, external calls from the Flow Designer requires IntegrationHub subscription, <a target="_blank" href="https://docs.servicenow.com/?context=CSHelp:IntegrationHub-licensing-information">Read More</a>.
Although I know that it is impossible to call REST directly from the Flow Designer, I think that it was possible to go through Script Includes.
Could you tell me where the solution is?
Thanks
Solved! Go to Solution.
- Labels:
-
flow designer
-
IntegrationHub
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2019 02:18 PM
From what i'm seeing if you are using Flow Designer there is no way around it. You will need IntegrationHub. If you aren't stuck on using Flow Designer you can use the normal Workflow Editor instead to call your Script Include.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2019 02:18 PM
From what i'm seeing if you are using Flow Designer there is no way around it. You will need IntegrationHub. If you aren't stuck on using Flow Designer you can use the normal Workflow Editor instead to call your Script Include.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2019 06:50 PM
Hi MB,
Thank you for your reply.
Oh really...
Because there is no way, I will activate an Integration Hub plugin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2020 08:12 PM
There is a Problem ticket for a related issue, because Servicenow does prevent you from doing REST calls through flow designer if you don't have integrationhub.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2022 04:08 AM
Hey there,
It's true that integrationHub plugin is required if we want to use REST step to call the web service of target instance/external system.
But if the requirement is like you have the 'Rest Outbound Message' configured on your instance and you want to call external system webService through this REST message.
We can call the REST Message from 'Flow Designer' using 'Action' with 'Script step'.
The way we call the REST message from BR, similar way we can write the same script in our Action's script step (Flow Designer).
Requirement - when an incident created/updated in instance A, same incident should be created in instance B with same value for Short Description, Description, Impact, Urgency, Assigned To, Assignment Group, CorrelationId as incident number.
A flow has been written with the trigger - incident created or updated followed by the action which is call the rest outbound.
Attaching some screenshot of flow designer and action.
Action-
Code to call the Rest message in script step-
try {
var r = new sn_ws.RESTMessageV2('PIP_integration_to_instanceB', 'copy incident');
r.setStringParameterNoEscape('correlation_id', inputs.correlation_id);
r.setStringParameterNoEscape('short_description', inputs.short_description);
r.setStringParameterNoEscape('description', inputs.description);
r.setStringParameterNoEscape('impact', inputs.impact);
r.setStringParameterNoEscape('urgency', inputs.urgency);
r.setStringParameterNoEscape('assignment_group', inputs.assignment_group);
r.setStringParameterNoEscape('assigned_to', inputs.assigned_to);
//override authentication profile
//authentication type ='basic'/ 'oauth2'
//r.setAuthenticationProfile(authentication type, profile name);
//set a MID server name if one wants to run the message on MID
//r.setMIDServer('MY_MID_SERVER');
//if the message is configured to communicate through ECC queue, either
//by setting a MID server or calling executeAsync, one needs to set skip_sensor
//to true. Otherwise, one may get an intermittent error that the response body is null
//r.setEccParameter('skip_sensor', true);
var response = r.execute();
var responseBody = response.getBody();
var httpStatus = response.getStatusCode();
outputs.responsebody = responseBody;
} catch (ex) {
var message = ex.message;
}
Regards,
Kartik Choudhary