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

Ankur Bawiskar
Tera Patron
Tera Patron

@Raviteja Kunal1 

Did you check if that flow is active and published?

UI action and flow both are in same scope?

Did you copy the script from the Create code snippet feature from flow?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar Yes both are in same scope. Flow is active and published. 

@Raviteja Kunal1 

Is this happening when admin clicks or non-admin clicks?

Is this happening all the time?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Happening all the time.