Flow - Function problem

Flow - Function problem

I have spent days trying to get this to work, but I cannot get it to work.  I have a flow that triggers on a zoho form submission.  This form has a field called "Employee_ID" on it.  I need to fetch the creator record and retrieve the record ID so I can then update that record after some other actions occur.  

this code retrieves the record:  

  1. string GetEIDRecV2(string EIDNum)
  2. {
  3. result = zoho.creator.getRecords("owner","ta-people","Employee_Details","Employee_ID==\"9999887\"",1,1,"licensetrackingconnector");
  4. RecID = result.get("ID");
  5. return RecID;
  6. }
But this code will not retreive anything: 

  1. string GetEIDRecV2(string EIDNum)
  2. {
  3. result = zoho.creator.getRecords("owner","ta-people","Employee_Details","Employee_ID==\"EIDNum\"",1,1,"licensetrackingconnector");
  4. RecID = result.get("ID");
  5. return RecID;
  6. }

EIDNum is a set variable box in the Flow.  Even in testing if I enter 9999887 it retrieves blank record.  If I hardcode the EIDNum in the script it will work.

Second problem is when I retrieve the record with the hard coded EIDNum I cannot get it to output the Record ID that is returned so I can use it in the rest of the flow.  

Any help would be 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