Skip to content

Instantly share code, notes, and snippets.

View expiscornovus's full-sized avatar

Dennis Goedegebuure expiscornovus

View GitHub Profile
@expiscornovus
expiscornovus / AtMentionChannel.json
Last active September 19, 2021 18:41
Microsoft Graph - Microsoft Teams At Mention Channel
{
"body": {
"content": "This is Flow mention channel test, <at id=\"0\">SharePoint Site Collections</at>",
"contentType": "html"
},
"mentions": [
{
"id": 0,
"mentionText": "SharePoint Site Collections",
"mentioned": {
@expiscornovus
expiscornovus / MarkAsImportant.json
Last active March 18, 2022 16:39
Microsoft Graph - Microsoft Teams Mark as important
{
"subject": "This is very important",
"importance": "high",
"body": {
"content": "This is a Flow test, this is important",
"contentType": "html"
}
}
@expiscornovus
expiscornovus / StarterCreationform_AdaptiveCard.json
Created July 8, 2020 12:16
StarterCreationform_AdaptiveCard.json
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"size": "Medium",
"weight": "Bolder",
"id": "Title",
@expiscornovus
expiscornovus / OnBoardingAdaptiveCard.json
Created July 9, 2020 08:18
OnBoardingAdaptiveCard.json
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.2",
"body": [
{
"type": "TextBlock",
"size": "Large",
"weight": "Bolder",
"id": "Title",
@expiscornovus
expiscornovus / Checkfornullvalueandconvertdatatype.json
Created September 30, 2020 11:25
Check for null value and convert data type
int(if(empty(string(body('Get_Account_record')?['numberofemployees'])), 0, string(body('Get_Account_record')?['numberofemployees'])))
@expiscornovus
expiscornovus / User Voice upvote button.json
Created November 13, 2020 11:50
User Voice upvote button
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "button",
"customRowAction": {
"action": "executeFlow",
"actionParams": "{\"id\": \"ac299030-fc6c-431a-b833-f567e6cbc1df\"}"
},
"attributes": {
"class": "ms-fontColor-themePrimary ms-fontColor-themeDarker--hover"
},
@expiscornovus
expiscornovus / termsofuseadaptivecard.json
Created November 15, 2020 17:04
Terms of Use adaptive card
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.2",
"body": [
{
"type": "TextBlock",
"size": "Medium",
"weight": "Bolder",
"id": "Title",
@expiscornovus
expiscornovus / http301movepermanently.json
Created January 8, 2021 15:56
HTTP 301 Moved Permanently workaround
actions('HTTP').outputs.headers.Location
@expiscornovus
expiscornovus / createfieldasxml_customformatter.json
Last active January 17, 2021 16:23
SharePoint Online REST API add CreateFieldAsXml CustomFormatter sample
{"parameters":
{"__metadata":
{"type":"SP.XmlSchemaFieldCreationInformation"},
"SchemaXml":"<Field CustomFormatter='{&quot;elmType&quot;:&quot;div&quot;,&quot;style&quot;:{&quot;flex-wrap&quot;:&quot;wrap&quot;,&quot;display&quot;:&quot;flex&quot;},&quot;children&quot;:[{&quot;elmType&quot;:&quot;div&quot;,&quot;style&quot;:{&quot;box-sizing&quot;:&quot;border-box&quot;,&quot;padding&quot;:&quot;4px 8px 5px 8px&quot;,&quot;display&quot;:&quot;flex&quot;,&quot;border-radius&quot;:&quot;16px&quot;,&quot;height&quot;:&quot;24px&quot;,&quot;align-items&quot;:&quot;center&quot;,&quot;white-space&quot;:&quot;nowrap&quot;,&quot;overflow&quot;:&quot;hidden&quot;,&quot;margin&quot;:&quot;4px 4px 4px 4px&quot;},&quot;attributes&quot;:{&quot;class&quot;:{&quot;operator&quot;:&quot;:&quot;,&quot;operands&quot;:[{&quot;operator&quot;:&quot;==&quot;,&quot;operands&quot;:[&quot;@currentField&quot;,&quot;@{variables('ChoiceOne')}&quot;]},&quot;@{variables('ChoiceColorOne')}&quot;,{&quot;operator&quot;:&quot;:&quot;,&quo
@expiscornovus
expiscornovus / foodchoicefieldcustomformatting.json
Created January 17, 2021 16:46
Food Choice Field with custom formatting
{
"elmType": "div",
"style": {
"flex-wrap": "wrap",
"display": "flex"
},
"children": [
{
"elmType": "div",
"style": {