function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
eric.mcgilleric.mcgill 

Lead and Task Create - One Step

Hello,

 

Is it possible, via web-services, to create a new lead, and create a task in one step?

 

Currently we create the lead, retrieve the returned lead id, then create the task. However we have a new trigger in place which may merge the lead prior to the task create so we're getting errors.

 

Thanks,

-Rick

indy_sfdcindy_sfdc

Hey Eric

 

Sounds like what you want to do is to create a Salesforce APEX web service to handle this request as one call.  Take a look at this article on the DEveloper board to get more info on creating a similar service.

 

http://wiki.developerforce.com/index.php/Apex_Web_Services_and_Callouts