Add YouTube Embed Web Part on page
How to add a YouTube Embed 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.
supported Web Part types
That’s it, Happy testing!
This sample adds the web part to a One Column 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 |
---|---|---|
embedCode | bhttps://youtu.be/nn4dX09z3Yw?si=adqkLamuU6shTYPo | The YouTube video embed link |
layout | oneColumn | One Column Section layout, other Layout value options |
searchablePlainTexts | title & captionText keys | Key/value pair for the caption text. The title doesn’t seem to be used. |
showControls | true | Boolean to determine if you want to show the YouTube controls with options like chapters, subtitles, etc. |
SitePageId | 2db14ef7-a900-4470-91f0-b1ab9414004d | 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 |
startTime | 00:10 | The start time of the video, in case you don’t want to start the video from the beginning. |
WebPartType | 544dd15b-cf3c-441b-96da-004d5a8cea1d | aka YouTube Embed, 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!