How to add a Button web part on a SharePoint Online page in a Power Automate flow.
This sample adds the web part to a oneColumn section on the page.
URI
Headers
Body
Screenshot with example
Below are a bit more details about the values used in this example. Hopefully that helps in configuring the right body payload.
| Property | Value | Details |
|---|---|---|
| alignment | Right | |
| links | https://www.expiscornovus.com | links as key/value pairs in an array referencing the button link |
| minimumLayoutWidth | 9 | |
| openInNewTab | true | |
| searchablePlainTexts | button.label & overlayText.text keys | Key/value pairs for the button text |
| SiteId | contoso.sharepoint.com,0b11c57d-ef88-46d7-9743-8e800c507595,af1a15c6-956b-4652-b8f8-869836e4e6ee | Variable used in the Site Address |
| SitePageId | 7ed93dd1-6243-41ab-9d58-488149815db9 | Guid of the Page which will be updated |
| WebPartType | 0f087d7f-520e-42b7-89c0-496aaf979d58 | aka Button, 13 other supported Web Part types |
Expected response
Will return the details of the updated page.
Copy/paste example
Resources
Update sitePageUse the Button web part
supported Web Part types
That’s it, Happy testing!
