AnsweredAssumed Answered

Creating a new Lead via the API not sending email Version 6.5.16 (Build 1082)

Question asked by Craig Ward on May 22, 2014
Latest reply on Feb 9, 2015 by Ashish Ashish
I am using Version 6.5.16 (Build 1082) of Sugar.

I have been using the API to create Leads and Cases within Sugar.  Both of my API calls (using JSON in C) create the leads, allocate them to a user and set all relevant parameters as expected.

When the Case is created it automatically sends an email to the assignee as it would if you did it manually via the web interface (This is fine).

Unfortunately when I create a Lead via the API the email is not sent out to the assignee.  The assignee is properly configured to receive email notifications when a Lead is assigned to them, I have tested this by using the web interface to allocate the lead away and then back to the assignee which then correctly sends the email.

I have also tried creating the Lead and assigning it to no one and then immediately assigning it via the API to the desired assignee but this also fails to send the email notification.

Please let me know if I need to provide any more information, I can supply source code if required.  Any help would be greatly appreciated.