cancel
Showing results for 
Search instead for 
Did you mean: 

How to find out Success and Error in SAP IRPA Global step functions?

0 Kudos

Hello,

In SAP IRPA there is any way to find our Global step is got success or error like if I run the bot if its is finish the function or work means it need to show success or else the function is not done means it need to show error Message. for that how can I add success and error function to that?

line number: 138 - 145

events.LOAD.on(function(ev){...................}); <== this function success or error part I want to get

thanks in Advance,

Narenthiran Annamalai.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi !

If you want to know if the content of the callback function has been successfully executed, you can surround the content by a try...catch.

If you want to know if the function itself has been triggered (the LOAD event has been triggered), I'll recommend you to use a boolean flag, set it to false, and make it true in the callback function. Then bellow the LOAD function, put a delay and some statements in case the boolean is still false.

Hope it helps you.

Best regards,

Baptiste

Answers (0)