FlowAPI Error: Subflow does not exist within application scope: global: no thrown error

Braden Semonovi
Tera Contributor

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!

6 REPLIES 6

Kieran Anson
Kilo Patron

Is the flow you've created in the global scope or is it within a scoped application?

find_real_file.png

The particular sub flow I'm trying to trigger is in the global scope. 

find_real_file.png

Hi Braden, did you ever got the solution?

Chinmay Tawade1
Tera Guru

Hi Braden,

Did you find any solution for this error.

Even I am getting this same error.

 

Thanks in advance!