Is it possible to evaluate in a Decision if a specific custom function returned an error message

Is it possible to evaluate in a Decision if a specific custom function returned an error message

We have a custom function in Zoho Flow that creates an invoice (or recurring invoice in some cases) with multiple items in Zoho Books. These custom functions work without any issues 99% of the time. But occasionally the invoice might not get created because of strangely formatted data in our CRM or other reasons. Is there any way for us to be able to have a decision after the custom function that could evaluate if a custom function was a success or not? 

The step in Zoho Flow looks like it was successful (because it's a custom function): 


But in reality, it actually failed: 


On the ensuing step, is there any way I can evaluate if custom function was successful? It's really hard to catch these rare errors for us since the custom function history shows green dot and is marked as successful even though the error prevented the custom function from creating the invoice.

Any help would be greatly appreciated.

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now