Bitrix24 Community

Support » Forum » Norge Vizcay
Select date in calendarSelect date in calendar

Pages: 1
Phone field with no data after lead creation using api
I'm running into some trouble here, according to bitrix api documentation this method:

BX24.callMethod( "crm.lead.add",
{
 fields:
{
   "TITLE": "FatJoint LLC",
   "NAME": "Paul",
   "SECOND_NAME": "A.",
   "LAST_NAME": "Nibot",
   "STATUS_ID": "NEW",
   "OPENED": "Y",
   "ASSIGNED_BY_ID": 1,
   "CURRENCY_ID": "USD",
   "OPPORTUNITY": 12500,
   "PHONE": [ { "VALUE": "555888", "VALUE_TYPE": "WORK" } ]
   }
},
function(result)
{
   if(result.error())
       console.error(result.error());
   else
       console.info("Created a new lead, ID=" + result.data());
}  
);


should create a new lead, and it does but the PHONE field is not working, i always get "not specified" after the lead creation,
is there any change on the api that i'm not aware of?
Edited: Norge Vizcay - 07/06/2017 13:08:05
Pages: 1
2,000,000+
organizations
are already using Bitrix24