Email is not working in Salesforce REST API for Events

Posted by Hitesh on Stack Overflow See other posts from Stack Overflow or by Hitesh
Published on 2013-10-29T21:51:18Z Indexed on 2013/10/29 21:53 UTC
Read the original article Hit count: 130

Filed under:

We are using Salesforce REST OAuth API for creating events. Here is the sample -

$content =json_encode(array("ActivityDateTime"=>$start,"WhoId"=>$userid,"Subject"=>$name,"StartDateTime"=>$start,"DurationInMinutes"=>30));
$obj=new sfdc_API($access_token,$instance_url);
$action="sobjects/Event/";
$contactURL=$obj->apiURL($action);
$obj->httpPost($contactURL,$content); // PHP Curl Post Request   

This code is creating an Event on Salesforce for the Contact ( Mentioned in WhoId) but its not sending the email. We want to send an email as well by Salesforce only.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about salesforce