I am trying to create a Lead in CRM from a payload coming from a Webhook. (Partial) Webhook payload is:
{
"webhookTrigger": {
"payload": {
"data__xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><form_data><time_submitted>05:00 PM UTC</time_submitted><page_uuid>b89733f7-1d7c-4ed9-b3ea-7d6bed508e58</page_uuid><lead_source>Symphonic</lead_source><label_or_company_name>CC3</label_or_company_name><phone_number>123</phone_number><email>aa3@bb3.com</email><page_name>Symphonic Get Quote</page_name><date_submitted>2020-06-12</date_submitted><last_name>BB3</last_name><first_name>AA3</first_name><ip_address>50.92.99.210</ip_address><page_url>https://get.plaympe.com/symphonic/</page_url><variant>j</variant></form_data>",
"data__json": {
"date_submitted": [
"2020-06-12"
],
"page_uuid": [
"b89733f7-1d7c-4ed9-b3ea-7d6bed508e58"
],
"last_name": [
"BB3"
],
"ip_address": [
"50.92.99.210"
],
"time_submitted": [
"05:00 PM UTC"
],
"label_or_company_name": [
"CC3"
],
"phone_number": [
123
],
"first_name": [
"AA3"
],
"email": [
"aa3@bb3.com"
]
}
}
}
}
In the Builder, I am trying to map most fields to appropriate Lead fields for Zoho CRM. I can clearly see in the "Insert Variable" section that, for example, Company is text ('abc' icon). Next, the Input on the "Create or Update Lead" is:
{
"Group": "",
"Owner": "",
"Company": [
"CCC"
],
"Email": [
"aaa@bbb.com"
],
"Description": "",
"Competitor Use": "",
"Price List": "",
"First Name": [
"AAA"
],
"Full Name": "",
"Website": "",
"Lead Status": "",
"Salutation": "",
"Format / Genre": "",
"Most Recent Visit": "",
"Zip Code": "",
"Phone": [
123
],
"Currency": "",
"Street": "",
"Number Of Chats": "",
"Secondary Email": "",
"Days Visited": "",
"Average Time Spent (Minutes)": "",
"Lead Source": "",
"Contact By Phone": "",
"Visitor Score": "",
"Reseller": "",
"Referred By": "",
"Title": "",
"Grouping": "",
"City": "",
"Mobile": "",
"First Page Visited": "",
"State": "",
"Referrer": "",
"Country": "",
"Tag": "",
"Last Name": [
"BBB"
],
"First Visit": ""
}
However, the Output produces this error:
Zoho CRM says "Invalid input for Company. The expected input type is text."