+ Start a Discussion
Manu SrivastavaManu Srivastava 

Log a call using REST API

I need to "log a call" for an account using REST API.

I can access the account details using REST - that works.

However I am unable to seach for the existing call logs that I created using the SalesForce UI using any REST query. What am I missing?

I understand I need to create a Task object for logging a call.

Once I create a task for the call, how do I associate it with a particular account so that it would show up in the UI in the Account page?

Thanks and would be great if you could point me in the right direction if something like this already exists. Didnt find it and hence thought of posting.
 
Best Answer chosen by Manu Srivastava
Swati GSwati G
you can perform query call.

http://www.salesforce.com/us/developer/docs/api_rest/index_Left.htm#CSHID=dome_query.htm|StartTopic=Content%2Fdome_query.htm|SkinName=webhelp

All Answers

Swati GSwati G
While creating task you can add what id to associate account to the task
Manu SrivastavaManu Srivastava
Thanks Swati.

Any idea how do I get a list of tasks that are already created using REST?

I beleive I can retrieve task details using "/services/data/v20.0/sobjects/Task/{ID}" once I have the task ID, but how do I get the task IDs for already created tasks (created using Salesforce web UI)?

 
Swati GSwati G
you can perform query call.

http://www.salesforce.com/us/developer/docs/api_rest/index_Left.htm#CSHID=dome_query.htm|StartTopic=Content%2Fdome_query.htm|SkinName=webhelp
This was selected as the best answer
Manu SrivastavaManu Srivastava
Will learn more on the SOQL queries, was able to get a list of Ids along with account Id using SELECT Id,WhatId FROM Task