Error creating an XML file
I am creating an xml as string in the function Employee.generatePartA_XML_String, and then I want to save it as a file to the field "Part_A_XML", but I get the response:
{"code":3700,"message":"Unable to upload a file. Please check and try again."}
How can I fix this?
This is the code:
xml = thisapp.Employee.generatePartA_XML_String(recordID);
xmlFile = xml.toFile("Employee.xml");
xmlFile.setParamName("file");
fileName = "Employee.xml";
xmlFile.setFileName(fileName);
reportName = "Employees_Report";
response = invokeurl
[
type :POST
files:xmlFile
connection:"zoho_oauth_connection"
];
info response;
Access your files securely from anywhere
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
-
-
-
-
-
-
-
-
-
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 Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.