How to call flow designer from workflow ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2023 03:30 AM
Hi all,
Is it possible to call flow designer from workflow and passing parameters from workflow to flow designer. Does Code snippet in flow designer is the only way?
Regards,
Nithya

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2023 03:33 AM
Hi @Haceena Shaik ,
Please follow this Article : Calling Flow designer from Workflow When using both workflow and flow designer for service catalog
Also,
you can try to use executeAction(action name, inputs) from workflow run script
how to trigger flow or subflow or action from script; check below link

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2023 04:09 AM
Hi @Haceena Shaik ,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2023 04:27 AM
In case of Sub flow
(function() {
// ... code ...
try {
var flw = 'name_of _the_flow'
var inputs = {};
inputs['param1'] = 'value_of _param1';
inputs['param2'] = 'value_of _param2' //optional;
// Start Asynchronously: Uncomment to run in background.
/var results = sn_fd.FlowAPI.getRunner().flow('global.' + flw).inBackground().withInputs(inputs).run();
current.flow_context = results.getContextId();
} catch (ex) {
var message = ex.getMessage();
gs.error(message);
}
})();