Flow Custom Funciton Not Returning String

Flow Custom Funciton Not Returning String

I have a simple custom function to return a string value in Flow. This works when I test the function in flow. When I run it in flow, it errors out (See below) 

Flow Output

  Value is empty and 'get' function cannot be applied at line number 4. Resolve the errors and try executing it again

Flow Input:

{
	"Owner": {
		"name": "nnnn nnnnn nnnnn",
		"id": 371195000000040030,
		"email": "xxxxxx@xxxxx.com"
	}
}
Func:
string f_GetCrmOwnerEmail(map Owner)
{
v_Owner = Owner.getJson("Owner");
Owner_Email = v_Owner.get("email");
return Owner_Email.toString();
}
Any ideas? 


 

    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