Skip to content

Instantly share code, notes, and snippets.

@expiscornovus
Created February 4, 2026 12:04
Show Gist options
  • Select an option

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

Select an option

Save expiscornovus/76b1183a7d47577f144e63aecac0d041 to your computer and use it in GitHub Desktop.
Add Bing Maps Web Part on Page
{"id":"e093f508-0d48-4abd-aff7-7415de9152de","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.1779/1.0.1779.4440/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\": \"Add Bing Maps 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\": \"@{guid()}\",\n \"webPartType\": \"e377ea37-9047-43b9-8cdb-a761be2f8e09\",\n \"data\": {\n \"dataVersion\": \"1.2\",\n \"description\": \"Display a location on a map using Bing Maps.\",\n \"title\": \"Bing Maps\",\n \"properties\": {\n \"maxNumberOfPushPins\": 1,\n \"shouldShowPushPinTitle\": true,\n \"zoomLevel\": 12,\n \"mapType\": \"road\",\n \"isTitleEnabled\": false,\n \"center\": {\n \"@odata.type\": \"#graph.Json\",\n \"latitude\": 52.090979680576176,\n \"longitude\": 5.121367144797671,\n \"altitude\": 0,\n \"altitudeReference\": -1\n },\n \"pushPins@odata.type\": \"#Collection(graph.Json)\",\n \"pushPins\": [\n {\n \"defaultTitle\": \"Dom Tower of Utrecht, Utrecht, Netherlands\",\n \"defaultAddress\": \"Dom Tower of Utrecht, Netherlands\",\n \"title\": \"Dom Tower of Utrecht, Utrecht, Netherlands\",\n \"address\": \"Dom Tower of Utrecht, Netherlands\",\n \"location\": {\n \"@odata.type\": \"#graph.Json\",\n \"latitude\": 52.09064865,\n \"longitude\": 5.12159491,\n \"altitude\": 0,\n \"altitudeReference\": -1,\n \"name\": \"Dom Tower of Utrecht, Netherlands\"\n }\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