I would like to use a If condition to execute a different flow. Everytime the column "Aprovado Interno" is null calls one flow, else calls the other.
However I am having difficulties to apply the null statement, as the column is a Datetime format.
Below is the JSON I am using:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
"elmType": "button",
"customRowAction": {
"action": "executeFlow",
"actionParams": "='{\"id\": \"' + if([$Aprovado_x0020_Interno]: (Datetime?)null,'e40f1536-4727-41f7-8ee7-2ac5f9f38b3d','e40f1536-4727-41f7-8ee7-2ac5f9f38b3d') + '\"}'"
},
"attributes": {
"class": "='ms-fontColor-' +if([$Aprovado_x0020_Interno]: (Datetime?)null,'orangeLight','teal')"
},
"style": {
"border": "none",
"background-color": "transparent",
"cursor": "pointer"
},
"children": [
{
"elmType": "span",
"attributes": {
"iconName": "=if([$Aprovado_x0020_Interno]: (Datetime?)null,'Lightbulb','Deploy')"
},
"style": {
"padding-right": "6px"
}
},
{
"elmType": "span",
"txtContent": "=if([$Aprovado_x0020_Interno]: (Datetime?)null,'Solicitar cliente','Solicitar DEV')"
}
]
}