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;
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Zoho Orchestly Resources
Zoho Creator Resources
Zoho WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.