Hi everyone,
My company is using Drupal 9 as intranet and is not planning to migrate to SPO at this point.
To give an entry point to our M365 learning pathway for end user we though of using Viva Connections app in Teams.
Our communication team is not against it but would like to have some integration with the Drupal intranet.
My idea was to use a flow to create on SharePoint Online a news link (as they appear on top of Viva Connections) when a news on Drupal is created.
Do you think this approach is the good one ? What would be the trigger to use and how to perform the news link creation ? I saw that the graph API can now handle SharePoint page operation but again not sure that's the good approach.
I would appreciate your opinion and idea to solve this.
There is a subtle difference between news post ( that are open in SharePoint) and news link (that open the link in the browser).
Both have the PromotedState value of 2, do you have any idea how to handle that ?
Very Insightful many thanks
HI @TbVdl ,
Using Microsoft Power Automate to create SharePoint news links in Viva Connections when new content is posted on can be done.
Use the HTTP trigger in Power Automate. This will require setting up a webhook in Drupal that sends a POST request to your Power Automate flow whenever a new news item is created.
https://www.drupal.org/project/webhooks
Use the SharePoint HTTP action in Power Automate to create a news link. You can achieve this by sending a POST request to the SharePoint REST API to create a "PromotedState" item with a value of 2.
While the Microsoft Graph API supports operations on SharePoint pages, for creating links directly in the news feed, using the SharePoint REST API might be more straightforward for this specific use case.
Mark as solution if it helps.
Thanks,
Sandeep Mishra
WarrenBelz
146,660
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,004
Most Valuable Professional