how to trigger flow via business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2023 05:43 AM
Hello Experts,
I want to trigger flow by flow designer can anyone please tell me how can we trigger flow by writing the script in the business rule?
thank you.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2023 05:30 AM
Usually I don't trigger Flows from Business rules, if needed I usually create a SubFlow to trigger from a Business rule if needed.
But if you would trigger a Flow (that has it's own trigger) from a Business rule, I guess it would run twice, since invoked twice. (once from it's trigger, and once from the business rule).
(I have not tested this scenario, so cannot confirm at the moment)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-02-2024 06:09 AM
how would you create a subflow to trigger from business rule? I am trying to generate a trigger within my business rule to create a knowledge article 3 days after an incident has been resolved
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2023 01:34 PM
You can call
var result = sn_fd.FlowAPI.getRunner() .flow('<flow name>') .inForeground() .timeout(12000) .run();
gs.info(result.debug());
if your flow is accepting input, you need to pass by initiating inputs object
var inputs = {};
inputs['sys_id'] = '57af7aec73d423002728660c4cf6a71c';
add .withInputs(inputs) parameter to runner method sn_fd.FlowAPI.getRunner() .flow('<flow name>') .inForeground() .timeout(12000) .run();