FlowAPI Error: Subflow does not exist within application scope: global: no thrown error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2020 09:31 AM
Hello All,
I've built a subflow within Flow Designer and I'm attempting to trigger the subflow via the FlowAPI with a background script. I keep getting the following error: "The subflow named: docusign does not exist within application scope: global: no thrown error"
I have changed the name of the SubFlow a few times to see if that would help. Below is the code I'm using to attempt to trigger the subflow:
(function () {
try {
var template = new GlideRecord('sn_docusign_spoke_docusign_templates');
template.get('941a08771bc4e8101024a641b24bcbda');
var inputs = {};
//......
//Input values
// Execute Synchronously: Run in foreground.
outputs = sn_fd.FlowAPI.executeSubflow('global.docusign', inputs);
gs.log(outputs);
} catch (ex) {
var message = ex.getMessage();
gs.error(message);
}
})();
I have tried multiple methods within the scoped FlowAPI and get the same message.
Thanks in advance!
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2020 10:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2020 11:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2022 05:50 AM
Hi Braden, did you ever got the solution?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2021 02:19 AM
Hi Braden,
Did you find any solution for this error.
Even I am getting this same error.
Thanks in advance!