Skip to content

Instantly share code, notes, and snippets.

Avatar

Dennis expiscornovus

View GitHub Profile
@expiscornovus
expiscornovus / AtMentionChannel.json
Last active Sep 19, 2021
Microsoft Graph - Microsoft Teams At Mention Channel
View AtMentionChannel.json
{
"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 Jul 2, 2020
Microsoft Graph - Microsoft Teams Mark as important
View MarkAsImportant.json
{
"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 Jul 8, 2020
StarterCreationform_AdaptiveCard.json
View 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",
View 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 Sep 30, 2020
Check for null value and convert data type
View Checkfornullvalueandconvertdatatype.json
int(if(empty(string(body('Get_Account_record')?['numberofemployees'])), 0, string(body('Get_Account_record')?['numberofemployees'])))
View User Voice upvote button.json
{
"$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"
},
View termsofuseadaptivecard.json
{
"$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 Jan 8, 2021
HTTP 301 Moved Permanently workaround
View http301movepermanently.json
actions('HTTP').outputs.headers.Location
@expiscornovus
expiscornovus / createfieldasxml_customformatter.json
Last active Jan 17, 2021
SharePoint Online REST API add CreateFieldAsXml CustomFormatter sample
View createfieldasxml_customformatter.json
{"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 Jan 17, 2021
Food Choice Field with custom formatting
View foodchoicefieldcustomformatting.json
{
"elmType": "div",
"style": {
"flex-wrap": "wrap",
"display": "flex"
},
"children": [
{
"elmType": "div",
"style": {