Name Cannot be Blank Error
Hi,
Im connecting to Zendesk through an API call from Zoho CRM. When trying to create an Organization, Im getting the following error:
{"responseText":{"error":"RecordInvalid","description":"Record validation errors","details":{"name":[{"description":"Name: cannot be blank","error":"BlankValue"}
Zoho's Deluge Code:
postParams.put("name",rec.get("Name") + " - " + rec.get("Site_ID").toString());
postParams.put("site_id",rec.get("Site_ID"));
postParams.put("ssa_status",ifnull(rec.get("SSA_Status"),""));
postParams.put("description","Desc");
zenMap.put("organization",postParams);
zenPostRec = invokeurl
[
url :zenCreateURL
type :POST
parameters:zenMap.toString()
detailed:true
connection:"zendeskconnection"
];
Thanks for any help.
-
Hey Scott,
This error would suggest that the name property for the organization is not being correctly sent to the API. I'm not familiar with Zoho CRM so I can't give you any specific advice, but I'd take a look at how the request payload is being populated. Here's a link to the documentation that'll demonstrate the correct request format for the Organization API:
https://developer.zendesk.com/api-reference/ticketing/organizations/organizations/#create-organization
I hope this helps!
Tipene
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
1 Kommentare