Forum Discussion
Colin Steger
Oct 17, 2018Brass Contributor
Unable to update Repost Page Description property using Flow or HTTP request
I am using Flow to create News items in SharePoint using information that is coming from an external application. I have a REST call getting all of the news post properties from the external appli...
Colin Steger
Oct 01, 2019Brass Contributor
I dropped this for several months and just picked it back up.
I found this excellent article that helped me immensely.
http://www.sites.se/2018/08/sharepoint-modern-pages-microsoft-flow/
Step 6 explains how you can use the _api/sitepages/Pages([id])/SavePageAsDraft resource to update the meta data for Modern Site Pages, which also works for Repost Pages.
{
"__metadata": {
"type": "SP.Publishing.SitePage"
},
"Description": "$$ENTERDESCRIPTION$$",
"OriginalSourceUrl": "$$REPOSTURL$$",
"Title": "$$ENTERTITLE$$",
"LayoutWebpartsContent": "[{\"id\":\"\",\"instanceId\":\"\",\"serverProcessedContent\":{\"htmlStrings\":{},\"searchablePlainTexts\":{},\"imageSources\":{},\"links\":{}},\"dataVersion\":\"1.0\",\"properties\":{\"description\":\"$$ENTERDESC$$\",\"thumbnailImageUrl\":null,\"title\":\"$$ENTERTITLE$$\",\"url\":\"$$REPOSTURL$$\"}}]"
}