Invalid object in scoped script while triggering flow through UI action

Raviteja Kunal1
Tera Expert

A error message is being displayed while we are trying to trigger a flow from an UI action. Not able to identify what is the issue since all the scripts in the flow are in the same scope.

 

Any reference to fix this issue. Thank You. 

 

RavitejaKunal1_0-1736508948907.png

 

8 REPLIES 8

Sandeep Rajput
Tera Patron
Tera Patron

@Raviteja Kunal1 Could you please share the UI Action script which is triggering the flow?

Hi @Sandeep Rajput 

 

Code snippet below

 

try {
     var inputs = {};
     inputs['current'] = current; 
     inputs['table_name'] = 'sn_shop_purchase_order';

     var contextId = sn_fd.FlowAPI.executeFlow('sn_fcms_intg.update_purchase_order_in_erp', inputs);

 } catch (ex) {
     var message = ex.getMessage();
     gs.error(message);
 }

 

 

@Raviteja Kunal1 Do you have the client checkbox checked on the UI Action?

No It is not checked.