Flow designer

kali
Tera Contributor

Hi All,

I am trying to call a flow designer by ui action . Please provide the code for this.

 

Thanks in advance.

4 REPLIES 4

Community Alums
Not applicable

Harish KM
Kilo Patron
Kilo Patron

Hi @kali here is the document on that how to call flow. Refer this

https://docs.servicenow.com/bundle/washingtondc-api-reference/page/app-store/dev_portal/API_referenc...

Regards
Harish

kali
Tera Contributor

Hi @Harish KM ,

Thanks for your response , i have some doubts in the flow designer i have put some trigger conditions if i call the flow designer using the ui action will it check the trigger conditions or directly exceute the flow. Please explain on the input mentioned in the doc , i am unable to understand that.

 

Thanks in advance 

Service_RNow
Mega Sage

Hi @kali 

you can make flow trigger from that button

keep that UI action as server side and use this script

var flowInputs = {};
flowInputs['current'] = current;
flowInputs['table_name'] = current.getTableName();

var result = sn_fd.Flow.startAsync('flow name', flowInputs);

 

Please mark reply as Helpful/Correct, if applicable. Thanks!