Unable to load connection with alias ID: null Open Connection Alias for Flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2024 04:30 AM - edited 07-26-2024 05:32 AM
Hi all,
When using below script in flow designer getting an error "Unable to load connection with alias ID: null Open Connection Alias". when account is set manually the is working fine, but not working for Script. Can someone help on this
var accId='';
var evn= gs.getProperty('instance_name');
var qry = '';
if((evn=='dev')||(env=='sandbox')) {
qry='account_name=DEV - Servicenow';
}
else if(evn=='test') {
qry='account_name=Default Demo/Test System - Standa';
}
var gr= new GlideRecord("sn_docusign_spoke_accounts");
gr.addEncodedQuery(qry);
gr.query();
if(gr.next()) {
accId=gr.sys_id.toString();
}
return accId;
Thanks in Advance,
Chaitanya

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2024 05:04 AM
@Madala Chaitany Looks like the custom action Send Adhoc Signature Request to user triggers an API call which needs a connection configuration to be setup first. Please refer to the API documentation to check how this connection can be configured within ServiceNow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2024 05:28 AM
Hi @Sandeep Rajput ,
API connection configuration is setup is done. It's working for when account is selected manually, it's not working for when account is selected from script

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2024 05:33 AM
@Madala Chaitany You need to check the custom action and see how the connection alias can be provided while making the API call.