- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 03:38 AM
How to trigger Rest Call?
1. Using Flow ?? or BusinessRule which one is best practice
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 03:40 AM
Hi @sanyalshubh
if you want to go low code/ no code go for Flow else BR. The recommendation is flow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 03:43 AM
Hi @sanyalshubh
Both way you can use ..
for Scripting you can use :-
We can write server side script by using below REST API class.
sn_ws.RESTMessageV2('rest_message_name','method_name');
for Flow you can create a flow action and perform call that action on main flow with the API call configured
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 03:46 AM
@sanyalshubh The both can be used in this case but making a rest call via an aync business rule will be a more performant approach than a flow/workflow. Adding a flow context to a record for an API call is going to make entries in a lot of flow related tables in ServiceNow on the flip side making the API call from an aync business rule will not have such overheads.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 03:40 AM
Hi @sanyalshubh
if you want to go low code/ no code go for Flow else BR. The recommendation is flow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 03:43 AM
Hi @sanyalshubh
Both way you can use ..
for Scripting you can use :-
We can write server side script by using below REST API class.
sn_ws.RESTMessageV2('rest_message_name','method_name');
for Flow you can create a flow action and perform call that action on main flow with the API call configured
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 03:46 AM
@sanyalshubh The both can be used in this case but making a rest call via an aync business rule will be a more performant approach than a flow/workflow. Adding a flow context to a record for an API call is going to make entries in a lot of flow related tables in ServiceNow on the flip side making the API call from an aync business rule will not have such overheads.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 03:48 AM
well it depends on your requirement and how complex the REST call is
If it's pretty straight forward then use low-code, no code Flow
If it's complex then use Business rule or script include.
If my response helped please mark it correct and close the thread so that it benefits future readers.