Unable to load connection with alias ID: null Open Connection Alias for Flow designer

Madala Chaitany
Giga Guru

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; 

 

 

MadalaChaitany_0-1721993368031.png

 

Thanks in Advance,

Chaitanya

3 REPLIES 3

Sandeep Rajput
Tera Patron
Tera Patron

@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.

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

@Madala Chaitany You need to check the custom action and see how the connection alias can be provided while making the API call.