Notify Original Author when someone likes a discussion post

Hi,

I am trying to create a SharePoint workflow so that it sends an email to the original author of the post when  the original post is liked or any replies to it liked. 

I need to send an email with the person who liked the post. I am open for using REST API.

Please help me with steps.

Any help is apprec

May 22nd, 2015 5:43pm

Hi,

In the Social feed REST API, there is an endpoint URI _api/social.feed/post/likers which Gets the users who like the specified microblog post:

https://msdn.microsoft.com/en-us/library/office/dn155789.aspx#bk_postLikers

In the response JSON string, there will be information about The users who like the specified post as below:

{"d":{
  "Likers":{
    "results":[{
      "__metadata":{"type":"SP.Social.SocialActor"},
      "AccountName":"domain\\username1",
      "ActorType":0, 
      "CanFollow":false, 
      "ContentUri":null, 
      "EmailAddress":null, 
      "FollowedContentUri":null, 
      "Id":"1.655c70c348374d48839daabc24a360f0.82baa3bdfa2f481a8185802eb9c6c6cd.5d227a6fa3894f0c9dde26876b71d619.0c37852b34d0418e91c62ac25af4be5b",
      "ImageUri":null, 
      "IsFollowed":false, 
      "LibraryUri":null, 
      "Name":"User1 Name",
      "PersonalSiteUri":"http://serverName/my/personal/username1/",
      "Status":0, 
      "StatusText":"Posted with REST.", 
      "TagGuid":"00000000-0000-0000-0000-000000000000",
      "Title":null, 
      "Uri":"http://serverName:80/my/Person.aspx?accountname=domain%5Cusername1"
    }]
  }
}}

You can extract the information needed from the response string and send it to the Original Author of a post via email.

A demo about how to call REST API in SharePoint 2013 Designer workflow:

https://sergeluca.wordpress.com/2013/04/09/calling-the-sharepoint-2013-rest-api-from-a-sharepoint-designer-workflow/

About how to send email in SharePoint 2013 Designer workflow:

http://www.lynda.com/SharePoint-tutorials/Creating-workflow-sends-email/144025/161215-4.html

Thanks 

Patrick Liang

Free Windows Admin Tool Kit Click here and download it now
May 24th, 2015 9:09pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics