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