How to setAbortAction in a custom action in a flow

GassanHirra
Tera Contributor

I want to abort the insertion of a record if some condition is met in the flow,

I did add the flow logic and everything and i made a custom action and added a script into it, but i can't seem to figure out how to setAbortAction since current.setAbortAction(true); returns this error 
Error: Cannot convert null to an object.,Detail: Cannot convert null to an object.
Any help would be much appreciated, Thanks šŸ™‚ 

7 REPLIES 7

@Yuan Lin 

please refer below link

https://community.servicenow.com/community?id=community_question&sys_id=0faa27681b2a0490ada243f6fe4b...

Regards
Ankur

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

The above link is archived. let me knew if this can be achieved through flow or not? @Ankur Bawiskar 

Yuan Lin
Tera Contributor

Thanks, @Priyanka Patil!