Skip to content

Instantly share code, notes, and snippets.

View Imari91's full-sized avatar
πŸ’–

Imari91

πŸ’–
View GitHub Profile
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.2",
"body": [
{
"type": "TextBlock",
"text": "Report a message",
"weight": "Bolder",
"size": "Medium",
{
"type": "AdaptiveCard",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "auto",
"items": [
{
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"size": "Medium",
"weight": "Bolder",
"text": "This is the Adaptive Card Data Base64"
},
{
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
@Imari91
Imari91 / JSONButtonSPOSimple.json
Created April 4, 2020 15:12
JSONButtonSPOSimple
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "a",
"style": {
"display": 'flex',
"align-items": "center"
},
"attributes": {
"target": "_blank",
"href": "='https://prod-12.westeurope.logic.azure.com/urlgenerator/Id/'+[$ID]+'?api-version=2016-06-01'"
@Imari91
Imari91 / JSONPercentageSPODisplay.json
Created April 4, 2020 14:53
JSON Percentage display
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"children": [
{
"elmType": "span",
"txtContent": "=if([$Aprobacion_mktg] == 'Pendiente', '0%', if([$Aprobacion_ventas] == 'Pendiente', '33%', if([$Aprobacion_direccion] == 'Pendiente', '66%', '100%')))",
"style": {
"padding-left": "8px",
"white-space": "nowrap"
@Imari91
Imari91 / JSONDoubleButtonSPO.JSON
Created April 4, 2020 14:08
JSONDoubleButtonSPO
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
"elmType": "span",
"style": {
"min-width": "250px"
},
"children": [
{
"elmType": "a",
"style": {