Created
July 7, 2025 12:52
-
-
Save expiscornovus/134963e7c0bea5b49dc4d0db6c594b4e to your computer and use it in GitHub Desktop.
Add Spacer Web Part on Page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"id":"18f714d2-5f28-4ce6-a71d-e46f8d15de90","brandColor":"#474747","connectionReferences":{"shared_sharepointonline":{"connection":{"id":"/exp_sharedsharepointonline_a6843"}}},"connectorDisplayName":"SharePoint","icon":"https://conn-afd-prod-endpoint-bmc9bqahasf3grgk.b01.azurefd.net/v1.0.1754/1.0.1754.4231/sharepointonline/icon.png","isTrigger":false,"operationName":"Send_an_HTTP_request_to_SharePoint","operationDefinition":{"type":"OpenApiConnection","inputs":{"host":{"connectionName":"shared_sharepointonline","operationId":"HttpRequest","apiId":"/providers/Microsoft.PowerApps/apis/shared_sharepointonline"},"parameters":{"dataset":"@parameters('SPOSiteCollection_PowerUsers (exp_SPOSiteCollection_PowerUsers)')","parameters/method":"PATCH","parameters/uri":"_api/v2.0/sites('@{variables('SiteId')}')/pages/@{variables('SitePageId')}/oneDrive.page","parameters/headers":{"Accept":"application/json;odata=verbose","Content-Type":"application/json;odata=verbose"},"parameters/body":"{\n \"@odata.type\": \"#microsoft.graph.sitePage\",\n \"title\": \"Add Spacer Web Part on Page\",\n \"canvasLayout\": {\n \"horizontalSections\": [\n {\n \"layout\": \"oneColumn\",\n \"id\": \"1\",\n \"emphasis\": \"none\",\n \"columns\": [\n {\n \"id\": \"1\",\n \"webparts\": [\n {\n \"id\": \"73d07dde-3474-4646-badb-f28ba239e0e1\",\n \"webPartType\": \"8654b779-4886-46d4-8ffb-b5ed960ee986\",\n \"data\": {\n \"dataVersion\": \"1.1\",\n \"description\": \"Add vertical space between areas on the page.\",\n \"title\": \"Spacer\",\n \"properties\": {\n \"autoHide\": true,\n \"height\": 152,\n \"minimumLayoutWidth\": 1\n },\n \"serverProcessedContent\": {\n \"htmlStrings\": [],\n \"searchablePlainTexts\": [],\n \"links\": [],\n \"imageSources\": []\n }\n }\n }\n ]\n }\n ]\n }\n ]\n }\n }"},"authentication":{"type":"Raw","value":"@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']"}},"runAfter":{"Initialize_variable_-_SitePageId":["Succeeded"]},"metadata":{"operationMetadataId":"3d5a464a-ac46-4834-a760-6806bb2b03f9"}}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment