Closed asifaecor closed 3 years ago
as I can see you already getting the id by
$id = $lead->getEntityId();
however if you asking about the error, I think its because you didn't set a mandatory field on 'Events' module, you can go to the CRM settings page and try to figure out api_names for mandatory fields,
Settings->(under DEVELOPER SPACE section)->APIs->API names
This issue has been closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
HI above code is working fine when I m comment $eventrecord->setFieldValue('What_Id',$id);
whenever I uncomment this line I will get following error.