Unable to trigger the Subflow from script
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2023 12:26 PM
Hi,
I'm trying to trigger a subflow from script but getting an error while triggering subflow.
even tried from background script but its not working, script which I ran in background is below:
(function() {
try {
var result = sn_fd.FlowAPI.getRunner()
.subflow('sn_ad_spoke.subflow_name') // subflow_name was the flow name which I removed
.inForeground()
.run();
gs.info(result);
} catch (ex) {
var message = ex.getMessage();
gs.error(message);
}
})();
Can anyone help me out figuring out the issue?
Thanks
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2023 12:03 AM
Hi @Snow Developer4,
Generate your script from the flow itself. That way you can be sure it is correct:
Create code snippet, is what you are looking for.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.