Call to "zoho.inventory.<any-method>() from a custom Deluge Function within Zoho-Flow returns error: Code 14, Invalid value passed for authtoken.

Call to "zoho.inventory.<any-method>() from a custom Deluge Function within Zoho-Flow returns error: Code 14, Invalid value passed for authtoken.

We found a weird authentication problem when "Deluge make a call from Custom Function in a Zoho-Flow".

Code 14, Invalid value passed for authtoken.

The code follows:
  1. void Token_test_2020()
  2. {
  3. organizations = zoho.inventory.getOrganizations();
  4. info organizations;
  5. leads = zoho.crm.getRecords("Leads",1,200);
  6. info leads;
  7. }
The answer follows:
  1. [
  2. {
  3. "code": 14,
  4. "message": "Invalid value passed for authtoken."
  5. },
  6. "{\"Company\":\"beyond woman sl\",\"Owner\":{\"name\":\"Mousee\",\"id\":\"2010XXXXXXXXXXX7009\",\"email\":\"XXXXXXXXXXX@mousee.com\"},(...)"
  7. ]
As you can see, the first call fails with Code 14.
The second one succeded.

We are almost sure that the problem comes from inside Zoho and we can't fix it by ourselves.

Anyway, while we wait for Zoho support,

Anyone has faced this same problem and/or knows how to fix this? 

Any ideas will be wellcome; This is being a big business-stop for us :S


Regards,
Dani

    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