How do you fetch a file's ID from WorkDrive in Deluge?
I need to construct a Deluge script in which I dynamically fetch a folder and then upload a set of attachments to it. Getting and uploading attachments seems to be easy, but I'm struggling to get hold of the folder ID that I need in order to upload to it. We're using the WorkDrive integration for Zoho CRM, so I ran a quick test to see if we could get at the files needed from the related list. In Deluge, I tried this:
files = zoho.crm.getRelatedRecords("Zoho_WorkDrive", "Deals", DealID);
info files;
However, the result I received was this:
- {"code":"INVALID_DATA","details":{},"message":"the given relation is not supported in api","status":"error"}
So, it looks like you can't access WorkDrive files from the CRM side. I then tried perusing the zoho.workdrive namespace to see if there was a method available, but the only methods I see are "uploadFile", "createTeamFolder", and "createFolder", so it doesn't look like any "getting" is available.
How do you fetch the ID of a file from WorkDrive in Deluge?