Uploading file to custom field of type file_upload using zoho crm api v2 (Account) - maximum_length error
Hi,
So i tried the steps from:
Step 1.
- {
- "data": [
- {
- "code": "SUCCESS",
- "details": {
- "name": "logo.png",
- "id": "6bf2752ab70ab22b3341856dcc04107ab137224f724904c1234567890123456789"
- },
- "message": "logo.png uploaded Succeessfully",
- "status": "success"
- }
- ]
- }
Step 2
- {
- "data": [
- {
- "Company_Logo": [
- "6bf2752ab70ab22b3341856dcc04107ab137224f724904c1234567890123456789"
- ]
- }
- ]
- }
Which results in the following Error
- {
- "data": [
- {
- "code": "INVALID_DATA",
- "details": {
- "maximum_length": 1,
- "api_name": "Company_Logo"
- },
- "message": "invalid data",
- "status": "error"
- }
- ]
- }
When I change the Field Properties to allow multiple files (Upload multiple files - Maximum 5 files), the same error occures with "maximum_length": 5.
I also changed the JSON Data to
- {
- "data": [
- {
- "Company_Logo": "1"
- }
- ]
- }
which results in status = 'success' but nothing changed to the data inside the custom field.