• Add Image Web Part on page
  • Power Automate icon SharePoint Online icon
  • 1

How to add an Image 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.



PropertyValueDetails
alignmentCenter
fileNamebeer.jpgName of File
fixAspectRatiofalse
imageSources/sites/PowerUsers/Shared%20Documents/beer.jpgimages as key/value pairs in an array referencing the items as well
imageSourceType2
imgHeight405Height of Image
imgWidth720Width of Image
isOverlayTextEnabledtrue
isOverlayTextVisibletrue
overlayTextCheers, enjoy your beer!Overlay text
SitePageId05185da7-b069-434d-9ba7-51d8954bfa07Guid of the Page which will be updated
SiteIdcontoso.sharepoint.com,0b11c57d-ef88-46d7-9743-8e800c507595,af1a15c6-956b-4652-b8f8-869836e4e6eeVariable used in the Site Address
uniqueIdddae1b6b-298b-428c-9b1b-a87ffe986f2fId of Image file
WebPartTyped1d91016-032f-456d-98a4-721247c305e8aka Image, 13 other supported Web Part types
addimagewebpartonpage_flowsetup

Expected response

Will return the details of the updated page.

Copy/paste example

Resources

Update sitePage
Use the Image web part
supported Web Part types

That’s it, Happy testing!

You may also like...

1 Response

  1. Mirko Peters says:

    This is such a great and practical walkthrough—thanks for putting it together so clearly! ?

    I especially like how you broke down the payload and included all the relevant properties with explanations. That table at the end is super helpful when trying to map everything correctly in Power Automate without constantly second-guessing values.

    Also… I have to admit, the beer image totally triggered me too ?? Now I can’t look at this example without thinking it’s the most “refreshing” SharePoint demo out there. The overlay text is just the perfect finishing touch—makes it feel way more real than the usual placeholder examples.

    Jokes aside, this is exactly the kind of end-to-end example that makes working with the SharePoint REST API and page composition much easier to understand. The inclusion of the full request, response, and even the flow export is incredibly valuable—saves a ton of trial and error.

    Definitely bookmarking this for future use. Thanks again for sharing!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.