Skip to content

Instantly share code, notes, and snippets.

@expiscornovus
Last active March 15, 2025 13:44
Show Gist options
  • Save expiscornovus/8b80fa8b7f3eb240659b4d91d3f88f79 to your computer and use it in GitHub Desktop.
Save expiscornovus/8b80fa8b7f3eb240659b4d91d3f88f79 to your computer and use it in GitHub Desktop.
Body Add Call to Action Web Part on Page
{
"@odata.type": "#microsoft.graph.sitePage",
"title": "Call to Action Example",
"canvasLayout": {
"horizontalSections": [
{
"layout": "oneColumn",
"id": "1",
"emphasis": "none",
"columns": [
{
"id": "1",
"webparts": [
{
"id": "665084dc-3477-4a35-a628-b031c55a24ef",
"webPartType": "df8e44e7-edd5-46d5-90da-aca1539313b8",
"data": {
"dataVersion": "1.1",
"title": "Call to action",
"description": "Add call to action text and an image paired with a clickable button.",
"properties": {
"alignment": "Left",
"minimumLayoutWidth": 10,
"button": {
"@odata.type": "#graph.Json"
},
"overlayText": {
"@odata.type": "#graph.Json"
},
"image": {
"@odata.type": "#graph.Json",
"zoomRatio": 1
}
},
"serverProcessedContent": {
"htmlStrings": [],
"searchablePlainTexts": [
{
"key": "button.label",
"value": "Submit here"
},
{
"key": "overlayText.text",
"value": "We want your feedback"
}
],
"links": [
{
"key": "button.linkUrl",
"value": "https://forms.office.com/Pages/ResponsePage.aspx?id=somerandomidentifier"
}
],
"imageSources": [
{
"key": "image.url",
"value": "https://cdn.hubblecontent.osi.office.net/m365content/publish/60f0f9cd-049c-4534-a5d2-b5b08b8ed62e/1220117316.jpg"
}
]
}
}
}
]
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment