Feb 09 2023 03:19 AM
For a customer I'm trying to find out if it's possible to have notifications about comments and likes received on a newspost send to the custom author set in the news post and not the account creating the article.
We have many users that created an article in Word, then have it reviewed by our comms department who will then publish the article with the original author set in the article. Notifications on comments an likes are then received by the person who created the news page and are not send to the custom author in the article.
Is this as designed and if so, is there a possibility to change where the notifications are send to?
Thanx all in advance.
Feb 09 2023 05:07 AM - edited Feb 09 2023 05:33 AM
Solution@FritsH78 out of the box you can't change who gets the notifications and it's annoying the way Microsoft have implemented this. But there is a solution to this! At my company we have a similar system where I am usually publishing the articles but I am not the writer of them or the contact for comments etc. So what I do as soon as I publish a news story is to change the created by column using a JSON-formatted button in the list which triggers a flow in Power Automate to change the created by column to the contact for the story.
1. Create an instant flow from blank. The trigger is the SharePoint "for a selected file trigger". Select the site and type in Site Pages as a custom value in the library field. We need a way to tell the flow which user to change the create by column to, so we add a number input which will later use the unique ID, called a P number, that all our staff are given.
Next, add a Send an HTTP request to "SharePoint" action and select the site.
Name & save your flow and copy the ID.
2. In the SharePoint list add a single of text column and format it with the following JSON, changing the flow id in the actionParams line to your flow's ID:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "button",
"txtContent": "Change Created By to name of page contact",
"customRowAction": {
"action": "executeFlow",
"actionParams": "='{\"id\":\"50097cde-b800-4c6c-ade9-95be7574f4e5\", \"headerText\":\" ' + [$Title] + '\",\"runFlowButtonText\":\"Go\"}'"
},
"style": {
"background-color": "#cf000f",
"color": "white",
"border-radius": "10px"
}
}
That will add a button that looks like this:
When you click the button a pane will open where you enter the user to change the created by column to:
When you click the Go button the flow will run and after a few seconds the created by column will be changed. The news stories with the arrows below were created by me but by running this flow have had their created by column changed to the contact for the story
Come back with any questions about this.
Rob
Los Gallardos
Microsoft Power Automate Community Super User
Feb 14 2023 10:52 AM
@RobElliott thanx, as there’s not an out of the box solution available, this is the next best thing. Our comms department is very pleased with this.