[SalesForce] Inserting ‘Log a Call’ task using REST API

I am currently trying to insert a new 'Log a Call' task for accounts / contacts using the REST API.

I have the information I require from the calls in an SQL database table including the accountId/contactId.

There are approximately 100 calls per day which I need to add every 30 minutes (20 at a time max).

I would prefer to add these via the REST API for ease of use (it fits alongside a current REST API implementation).

If I iterate over the records, is it possible to do the insert in this fashion?

Best Answer

Yes, you can use the REST API to insert tasks for account. The REST api only supports actions on individual records, if you want to use one call for multiple records you'll need to use the BULK API. Whether being inefficient and doing one call per record matters has to do with how many API calls your organizations has available. Large organizations with unlimited edition rarely have issues, but smaller organizations can hit the 1K/day/user limit (assuming enterprise license) much quicker.

As @theGreatDanton points out. You also have the option of creating your own REST webservice which you can build out your logic to insert multiple records in one call.

Related Topic