Get file contents off a file upload field
Hi
I have been struggling with getting uploaded file contents in ZOHO CRM using DELUGE.
I have a custom module that has a file upload field were users should upload an XML file
I have been able to retrieve the URL of the file but not the contents. There seems to be no way to get it directly so I have been trying to download the file again via API
- if(factura.get("Archivo_XML")!=null)
- {
- file = factura.get("Archivo_XML");
- info file;
- url = file.toCollection().get("download_Url");
- url = "https://crm.zoho.com" + url;
- info url;
- // to fetch file from the cloud using invokeUrl task
- fileVariable = invokeUrl
- [
- url: url
- type: GET
- connection : "zoho_crm"
- ];
-
- // to fetch the file content
- response = fileVariable.getFileContent();
- info response;
-
- }
I can get the file with that URL just fine, but when I inspect fileVariable, I see that it's getting
https://crm.zoho.com as a non authenticated user.
What do I have to send in addition to what I send already to be able to get the XML data?
Zoho Developer Community
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Sticky Posts
Effortlessly advance through your CRM blueprints by including optional fields in transitions
Editions: Professional edition and above DCs: All Release plan: This enhancement is being released in a phased manner to customers. It will soon be available to all users. Hello everyone, Blueprints streamline processes and ensure users adhere to required
Enhancement in Field update and date/time based triggers in Workflow
Hello everyone, Workflows allow to automatically execute a set of actions whenever the defined criteria is met. For example, whenever a new lead is created an introductory email is sent. So this action will keep occurring automatically as long as the
Notes and Attachments visibility can now be restricted based on profiles
Dear All, We hope you're well! We are here with a quick update about Notes and Attachments profile permissions. In the past, a record's Notes and Attachments were visible by default to all users with record access. However, as notes and attachments can
FAQs on Assignment rules - Post your questions
Dear All, Greetings! Assignment rules benefit organizations with effortless queue management capabilities. To bring more clarity on assignment rules, we are constantly publishing FAQs in our knowledge base. To ease the navigation across these FAQs further,
Assign records based on user roles in an organization
Dear Customers, We hope you're well. We are excited to share a new addition to the assignment rules in Zoho CRM. When setting assignment rules, administrators can choose to automate all records or only records which match specific criteria. The criteria
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 WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.