How to upload a file to Zoho Catalyst?
I'm trying to upload a file to Catalyst using the following API.
The problem is that I keep getting the following error.
- {"status":"failure","data":{"message":"Invalid input value for file","error_code":"INVALID_INPUT"}}
Here's my code in CRM.
getFile is an API call to the file I have stored in a creator report. The call returns a file path which I then pass into the upload API call. No matter which values I pass into this API call, I always get the exact same error. Does anyone know why I keep getting this error? I also tried calling the download api for creator to download the file and it still gives me the exact same error.
- fileUrl = (getFile.get("data").get("Upload_Field")).getPrefix("?")
- download = invokeurl
- [
- url :"https://creator.zoho.com" + fileUrl
- type :GET
- connection:"creator"
- ];