Skip to content

Instantly share code, notes, and snippets.

@expiscornovus
Created January 12, 2026 15:41
Show Gist options
  • Select an option

  • Save expiscornovus/f3cdc1458b19795cdd856ea659fef32b to your computer and use it in GitHub Desktop.

Select an option

Save expiscornovus/f3cdc1458b19795cdd856ea659fef32b to your computer and use it in GitHub Desktop.
Add Title Area Web Part on Page
{"id":"3984dc09-b3b2-4eb2-8c61-44d1e078f986","brandColor":"#474747","connectionReferences":{"shared_sharepointonline_1":{"connection":{"id":"/exp_sharedsharepointonline_1c1d3"}}},"connectorDisplayName":"SharePoint","icon":"https://conn-afd-prod-endpoint-bmc9bqahasf3grgk.b01.azurefd.net/v1.0.1769/1.0.1769.4352/sharepointonline/icon.png","isTrigger":false,"operationName":"Send_an_HTTP_request_to_SharePoint","operationDefinition":{"type":"OpenApiConnection","inputs":{"host":{"connectionName":"shared_sharepointonline_1","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\": \"Test Title Area Web Part\",\n \"canvasLayout\": {\n \"horizontalSections\": [\n {\n \"layout\": \"fullWidth\",\n \"id\": \"1\",\n \"emphasis\": \"none\",\n \"columns\": [\n {\n \"id\": \"1\",\n \"webparts\": [\n {\n \"id\": \"@{guid()}\",\n \"webPartType\": \"cbe7b0a9-3504-44dd-a3a3-0e5cacd07788\",\n \"data\": {\n \"dataVersion\": \"1.6\",\n \"description\": \"Show a banner with title and author information\",\n \"title\": \"Banner\",\n \"properties\": {\n \"imageSource\": \"\",\n \"imageSourceType\": 0,\n \"title\": \"Testing Title area\",\n \"altText\": \"\",\n \"siteId\": \"\",\n \"webId\": \"\",\n \"uniqueId\": \"\",\n \"listId\": \"\",\n \"translateX\": 50,\n \"translateY\": 50,\n \"layoutType\": \"FullWidthImage\",\n \"textAlignment\": \"Left\",\n \"showTopicHeader\": false,\n \"showPublishDate\": true,\n \"topicHeader\": \"\",\n \"enableGradientEffect\": true,\n \"[email protected]\": \"#Collection(String)\",\n \"authorByline\": [\n \"[email protected]\"\n ],\n \"showTimeToRead\": true,\n \"htmlTitle\": \"<h2 class=\\\"headingSpacingAbove headingSpacingBelow lineHeight1_4\\\"><span class=\\\"fontSizeXLarge\\\">Testing Title area</span></h2>\",\n \"[email protected]\": \"#Collection(graph.Json)\",\n \"authors\": [\n {\n \"id\": \"i:0#.f|membership|[email protected]\",\n \"upn\": \"[email protected]\",\n \"email\": \"[email protected]\",\n \"name\": \"Dennis Goedegebuure\",\n \"role\": \"Senior Technical Consultant\"\n }\n ]\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":"e006a3a0-8d74-4c66-867c-8c3b7fa1b3c9"}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment