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
mayank_friend52mayank_friend52 

Task creation through API

Hello,

I want to create a task on Account object through API.
Could anyone suggets the way to accomplish this.
Also I want to select  the 'send notification email' checkbox while creating the task through API, just the same way we do while creating a task through UI.


Thanks,
ShashForceShashForce
You may use the DataLoader (https://developer.salesforce.com/page/Data_Loader) or Workbench (https://developer.salesforce.com/page/Workbench) to create records VIa the API.

If you want to create through external code via the SOAP API, these pages should help you get started:
https://www.salesforce.com/us/developer/docs/api/index_Left.htm#CSHID=sforce_api_objects_task.htm|StartTopic=Content%2Fsforce_api_objects_task.htm|SkinName=webhelp
https://www.salesforce.com/us/developer/docs/api/index_Left.htm#CSHID=sforce_api_objects_task.htm|StartTopic=Content%2Fsforce_api_objects_task.htm|SkinName=webhelp

For REST API:
https://www.salesforce.com/us/developer/docs/api_rest/

If this answers your question, please mark this as the Best Answer for this post, so that others can benefit from this post.

Thanks,
Shashank