Add Call to Action Web Part on page
How to add a Call to Action web part on a SharePoint Online page in a Power Automate flow.
This sample adds the web part to a One Column section on the page. A background image is used from Stock Images and the button links to a Microsoft Form link.
supported Web Part types
That’s it, Happy testing!
This sample adds the web part to a One Column section on the page. A background image is used from Stock Images and the button links to a Microsoft Form link.
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 | Left | Alignment of the Text and button. Options are Left, Center or Right |
imageSources | image.url key & your image link as value | Key/value pair for background image link |
layout | oneColumn | One Column Section layout, other Layout value options |
links | button.linkUrl key & your link as value | Key/value pair for button link |
searchablePlainTexts | button.label & overlayText.text keys | Key/value pairs for the text and the button text |
SitePageId | c396ea54-5237-4a7d-92a2-f7cbd4296d79 | Guid of the Page which will be updated |
SiteId | contoso.sharepoint.com,0b11c57d-ef88-46d7-9743-8e800c507595,af1a15c6-956b-4652-b8f8-869836e4e6ee | Environment Variable used in the Site Address |
WebPartType | df8e44e7-edd5-46d5-90da-aca1539313b8 | aka Call to Action, other supported Web Part types |

Expected response
Will return the details of the updated page.Copy/paste example
Resources
Update sitePagesupported Web Part types
That’s it, Happy testing!