Forum Discussion
Alerts on Comments in Modern Pages?
- Dec 29, 2017
Hi Rob,
I had a similar task: send the email notification to the author of the modern page in SharePoint online if the new comment added.
I have done this using MS Flow and MS Graph API because standard SharePoint actions in MS Flow didn't help me.
I've described the solution in https://www.infopulse.com/blog/using-microsoft-graph-api-inside-microsoft-flow-office-365/ on the public blog of my company.
Hope, it helps you.
UPDATE: This solution was implemented for teams site. We found new challenges for brand new communications sites.
It´s easy to setup using Microsoft Flow. You need the id of the "Site Pages" library and the id of the Comments list, you may find out using the SharePoint Client Browser connected to the specific SharePoint Website.
Then just setup a flow as displayed in the attached screenshot. Now if a user add a comment on a modern page, a mail is send. The body of the mail you may style with some html for better ux with link to the page for example.
- Meg SimmonsJun 28, 2018Brass Contributor
I have experienced the same behavior. Here's a great post that shows how to get them using an API call:
https://www.eliostruyf.com/getting-likes-and-comments-from-modern-pages/
- Jonas BjörkanderJun 28, 2018Brass Contributor
It seems like MS have changed their Comment behavior, at least on Communication sites. I can find OLD comments but when I add new comments, they doesn't show up in the Comments.30017244-8B12-4607-9D41-89A859BD352D list
- Nigel_Price9911Feb 09, 2018Iron Contributor
Thanks Egor Tsvetkov back to the drawing board for trapping Comments.
- Egor TsvetkovFeb 08, 2018Copper Contributor
Bad news, unfortunately. I created a new O365 trial subscription with latest releases and checked Comments list for Communication and Teams sites (private and public). Everywhere result is the same: no Comments list in SharePoint Designer, Client browser, Graph API or Native SharePoint REST API.
I checked on the customer's tenants: comments list available because target release was not applied.
Looks like, hidden Comments data source is a new feature from MS.
- Nigel_Price9911Feb 08, 2018Iron Contributor
Any News ? I have created a Teams Site (via the App) and still no comments list (I have created a comment)
- Nigel_Price9911Feb 06, 2018Iron Contributor
Thanks Egor Tsvetkov
- Egor TsvetkovFeb 06, 2018Copper Contributor
Hi Nigel,
My solution is written for teams site. I try to repeat it for Communication site and notify you when having some results.
- Nigel_Price9911Feb 06, 2018Iron Contributor
Hi All
I have now tried trying to find the Comments list on two different tenancies and 6 different site collections including Communications sites and Team sites. All have got one or more comments on a site page. In every case I can use REST calls to find the comments (see my other posts for details). In each case I am the global administrator and the site collection administrator and the site owner. I am running out of ideas on how to see the Comments list. @VesaJuvonen can you help here ?
Any ideas on what property I have to modify to get the Comments List to appear would be very gratefully received.
Thanks for your help in advance
Nigel
- Nigel_Price9911Feb 05, 2018Iron Contributor
Hi Meg Simmons
I downloaded the SPC and ran it against two of my sites which have got comments and this is what I got :-
No comments field !
I am beginning to wonder if I have a different version of SharePoint Online !
Regards
Nigel
- Meg SimmonsFeb 05, 2018Brass Contributor
I had similar issues at first. But, if you look back in this thread Daniel Staps posted a comment on 11-22-2017 that, if followed step-by-step will absolutely work. Use SharePoint Client Browser found here: https://archive.codeplex.com/?p=spcb and refer to his screenshots.
I was able to get this working with Flow after following Daniel's instructions.
- Nigel_Price9911Feb 05, 2018Iron Contributor
I have now tried with a second Communications Site. Same result no Comments list.
I have created a new Communications site, created a page on it and added a comment to the page. Same result no comments list.
I have also tried opening SharePoint Designer as an administrator - same result.
Regards
Nigel
- Nigel_Price9911Feb 05, 2018Iron Contributor
- Egor TsvetkovFeb 05, 2018Copper Contributor
Where did you search this list in SharePoint Designer?
It should be under "All Files":
- Nigel_Price9911Feb 05, 2018Iron Contributor
I have two comments on the home page and I can access them via a REST ->
${currentWebUrl}/_api/web/lists/GetByTitle('Site Pages')/GetItemById(1)/CommentsBefore Get SIte PagesAfter Get Site PagesComment Number 20Comment Number 10but no comments ListRegardsNigel - Egor TsvetkovFeb 05, 2018Copper ContributorHi Nigel,
If you didn't post any comment, then Comments.* list doesn't exist. SharePoint creates it automatically during the posting of the first comment. I hope, this is a reason. - Nigel_Price9911Feb 04, 2018Iron Contributor
Hi Daniel Staps
What tool did you use to get this list of lists (Specifically the Comments list). I have tried and failed to find this list using SharePoint Designer, REST calls and CSOM. I am the global administrator for the tenant I am using so I should be able to see all lists.
Regards
Nigel
- AnonymousNov 23, 2017Lol. Well whoever I put trust into the items weren’t stored in list lost cool points with me 😬😂. Yeah if you can trigger flow on new comments and access the other metadata this would be easy to do at that point.
- Daniel StapsNov 23, 2017Copper Contributor
The Comments are stored in a list as you can see here
It´s a screenshot of the lists in a SharePoint Communication Site. As the comments are stored in a list, I was able to setup a alert flow in new comments.