You need to sign in to do that
Don't have an account?
Manu Srivastava
How do I add a post to a feed related to a contact or account using REST API
I want to add posts to the contact feed for a particular contact that I select using REST.
What do I need to use?
I see the following when do I go a get on ContactFeed:
"urls" : {
"sobject" : "/services/data/v20.0/sobjects/ContactFeed",
"describe" : "/services/data/v20.0/sobjects/ContactFeed/describe",
"rowTemplate" : "/services/data/v20.0/sobjects/ContactFeed/{ID}"
Retreiving details for the contact does not give me an ID for the ContactFeed that I could use here. How do I see the already existing posts on the contact feed and more importantly, how to I add a post to the contact feed?
Any help or pointers will be appreciated.
What do I need to use?
I see the following when do I go a get on ContactFeed:
"urls" : {
"sobject" : "/services/data/v20.0/sobjects/ContactFeed",
"describe" : "/services/data/v20.0/sobjects/ContactFeed/describe",
"rowTemplate" : "/services/data/v20.0/sobjects/ContactFeed/{ID}"
Retreiving details for the contact does not give me an ID for the ContactFeed that I could use here. How do I see the already existing posts on the contact feed and more importantly, how to I add a post to the contact feed?
Any help or pointers will be appreciated.
/services/data/v28.0/sobjects/Contact/quickActions gives me some options like below:
{
"label" : "Post",
"name" : "FeedItem.TextPost",
"type" : "Post",
"urls" : { }
}, {
"label" : "File",
"name" : "FeedItem.ContentPost",
"type" : "Post",
"urls" : { }
}, {
"label" : "Link",
"name" : "FeedItem.LinkPost",
"type" : "Post",
"urls" : { }
}, {
"label" : "Poll",
"name" : "FeedItem.PollPost",
"type" : "Post",
"urls" : { }
}, {
"label" : "Question",
"name" : "FeedItem.QuestionPost",
"type" : "Post",
"urls" : { }
}
I think the answer lies somewhere here - Not very clear on how to use this though. I am trying this out using curl.
Any help is greatly appreciated!