Hi everyone.
I decided today to try to solve a problem using Deluge function.
For this I need to get all the products that lie in the sales order on which the trigger in Flow was triggered.
This is the line where the error occurs:
inventoryOrder = zoho.inventory.getRecordsByID("SalesOrders",XXXXXXXXXXXXXXXXXX,MySO_ID);
The system returns this error message to me:
{"code":14, "message": "The request could not be authenticated as the authentication value you entered is invalid. Enter a valid authentication value and try again."}
I understand that the OrgID (XXXXXXXXXXXXXXXXXXXX) is incorrect.
There should be no problem with MySO_ID, because I read it in Flow and pass it to the function.
But where do I get the correct OrgID?
Is there an option to read it from the API directly in the script?