In SharePoint 2013, workflows we can do a web service call. With this feature we can use SharePoint REST services within the workflow.
I want to post to the current users newsfeed from a workflow by using the SharePoint REST api for Social. So I created a sharepoint 2013 site workflow in SPD. For the HTTP Web Service call I added dictionaries for request header and request content as below:
Request Header:
Accept : application/json; odata=verbose
Content-Type: application/json; odata=verbose
Request Content:
"restCreationData":
{
"__metadata":{
"type":"SP.Social.SocialRestPostCreationData"
},
"ID":null,
"creationData":{
"__metadata":{
"type":"SP.Social.SocialPostCreationData"
},
"ContentText":"This post was published using REST.",
"UpdateStatusText":false
}
}
The workflow completes, but it did not post to the newsfeed.
Can anyone tell me what I have missed here?