Zoho Workdrive folder linked as attachment to a Deal Record using Function

Zoho Workdrive folder linked as attachment to a Deal Record using Function

Hello,

I am trying to see if there is a function using which I can reference a Zoho Workdrive folder in Attachments section of a particular deal.

Please refer to this article.

https://help.zoho.com/portal/en/kb/crm/manage-crm-data/attachments-and-notes/articles/attach-files-workdrive#Sharing_documents_through_WorkDrive

What I am looking for is a way to do this using a custom function/Zoho Flow.

I am able to use the following function when a simple file needs to be attached from a particular URL.

file_object = invokeUrl
 [
 url: "customURL"
 type: GET
 ];
 response = zoho.crm.attachFile("Deals",xxxxxx,file_object,"workdrive");

Here "workdrive" is a custom connection that I have created with all scopes related to WorkDrive. In the url: I try to add a Permalink of a folder I see in the Workdrive UI of that folder. I even tried to make the link public but it still doesn't work.