Skip to content

Instantly share code, notes, and snippets.

@expiscornovus
Last active February 24, 2025 14:05
Show Gist options
  • Save expiscornovus/c1c15d7569f7fd4e28cd4b169dc1d69e to your computer and use it in GitHub Desktop.
Save expiscornovus/c1c15d7569f7fd4e28cd4b169dc1d69e to your computer and use it in GitHub Desktop.
Body Add Quick Links Web Part on Page
{
"@odata.type": "#microsoft.graph.sitePage",
"title": "Example Landing Page",
"canvasLayout": {
"horizontalSections": [
{
"layout": "oneColumn",
"id": "1",
"emphasis": "none",
"columns": [
{
"id": "1",
"webparts": [
{
"id": "73d07dde-3474-4545-badb-f28ba239e0e1",
"webPartType": "c70391ea-0b10-4ee9-b2b4-006d3fcad0cd",
"data": {
"dataVersion": "2.4",
"description": "Show a collection of links to content such as documents, images, videos, and more in a variety of layouts with options for icons, images, and audience targeting.",
"title": "Useful Links",
"properties": {
"[email protected]": "#Collection(graph.Json)",
"items": [
{
"thumbnailType": 2,
"id": 2,
"description": "",
"altText": "",
"rawPreviewImageMinCanvasWidth": 32767,
"fabricReactIcon": {
"@odata.type": "#graph.Json",
"iconName": "powerautomatelogo"
},
"sourceItem": {
"@odata.type": "#graph.Json",
"itemType": 2,
"fileExtension": "",
"progId": ""
}
},
{
"thumbnailType": 2,
"id": 1,
"description": "",
"altText": "",
"rawPreviewImageMinCanvasWidth": 32767,
"fabricReactIcon": {
"@odata.type": "#graph.Json",
"iconName": "powerbilogo"
},
"sourceItem": {
"@odata.type": "#graph.Json",
"itemType": 2,
"fileExtension": "",
"progId": ""
}
}
],
"isMigrated": true,
"layoutId": "Waffle",
"shouldShowThumbnail": true,
"isTitleEnabled": true,
"imageWidth": 100,
"hideWebPartWhenEmpty": true,
"dataProviderId": "QuickLinks",
"webId": "af1a15c6-956b-4652-b8f8-869836e4e6ee",
"siteId": "0b11c57d-ef88-46d7-9743-8e800c507595",
"listLayoutOptions": {
"@odata.type": "#graph.Json",
"showDescription": false,
"showIcon": true
},
"buttonLayoutOptions": {
"@odata.type": "#graph.Json",
"showDescription": false,
"buttonTreatment": 2,
"iconPositionType": 2,
"textAlignmentVertical": 2,
"textAlignmentHorizontal": 2,
"linesOfText": 2
},
"waffleLayoutOptions": {
"@odata.type": "#graph.Json",
"iconSize": 1,
"onlyShowThumbnail": false
}
},
"serverProcessedContent": {
"htmlStrings": [],
"searchablePlainTexts": [
{
"key": "title",
"value": "Useful Links"
},
{
"key": "items[0].title",
"value": "Power Automate"
},
{
"key": "items[1].title",
"value": "Power BI"
}
],
"links": [
{
"key": "baseUrl",
"value": "/sites/PowerUsers"
},
{
"key": "items[0].sourceItem.url",
"value": "https://make.powerautomate.com"
},
{
"key": "items[1].sourceItem.url",
"value": "https://app.fabric.microsoft.com"
}
],
"imageSources": []
}
}
}
]
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment