Hi,
I have an scenario and I want to create that if one operation gives me error, run X operation, if no error run Y operation.
EG:
I make an http request to get a file, if this http request gives error send an email, if no error upload the file to google drive.
How to do it? Thank you!
Hi @Yanina_Guirotane, you can use a router to do that so the router would have two paths one that goes to the google drive and another that send an email when you receive an error and then filter these paths by the status code or the error code.
Thank you!
But I do not know how to make the filter of error.
Let say that I have this Image module, sometimes gives me this error:
How do I make that if I get an error on this module (for example this one), run X operation?
there are two ways you can do this one is by using a resume error handler where you store this message and on the filter you can search for the error if the text contains Command failed or whichever error code you want to be checked upon
second way would be using an ignore error handler and filtering it by the data variable if the data doesn’t exist it would be considered an error and it would get ignored by the error handler and it would go to a different path because the data doesn’t exist
Sounds good, I will try it! Thank you