I'm writing a custom function in Zoho Flow to perform some writes to Zoho Books from a web hook request.
I want the custom function to FAIL if something goes wrong (for example, if an item cannot be found). I cannot figure out how I can make this function fail. I've scoured the Zoho documentation. Can I not just throw an exception? How do I throw an exception in Deluge?
Side note: I'm sick and tired of Zoho's documentation. I've been using Zoho Books and Analytics for a couple of years now, and it's always SO difficult to find answers.
You can do a variation on the following example. The example will return "Error at line : 6, Given index 10 is greater than the list size".
If you change the code to in the "Try" block to something that succeeds sometimes then an empty string will be returned on success and a non-empty string will be returned when an exception occurs.