• Add Document Embed Web Part on page
  • Power Automate icon SharePoint Online icon
  • 0

How to add a Document Embed 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
filehttps://contoso.sharepoint.com/sites/PowerUsers/Shared%20Documents/Example%20Presentations/Demo%20Presentation%20Teams.pptxLink to file
links/sites/PowerUsers/Shared%20Documents/Example%20Presentations/Demo%20Presentation%20Teams.pptxlinks as key/value pairs in an array referencing the file as well
SitePageId8b2369a2-ae08-42fb-ad6f-74759b3a18c7Guid 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
startPage4
uniqueIdb3e0b18a-d447-4d95-8881-5b97eef0763bId of PowerPoint file
WebPartTypeb7dd04e1-19ce-4b24-9132-b60a1c2b910daka Document Embed, 13 other supported Web Part types
adddocumentembedwebpartonpage_flowsetup

Expected response

Will return the details of the updated page.

Copy/paste example

Resources

Update sitePage
Use the File and Media web part
supported Web Part types

That’s it, Happy testing!

You may also like...

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.