
Announcements
I have a parent/child flow (because my original flow goes way past 9 levels). In a much simplified example, the parent flow checks two conditions: One, if the user checked a box or not. Simple enough, works great. If the user checks yes, then we pass to the child to evaluate the next condition: Pick a pick list value -> condition is Yes; Don't pick a value ->something else will happen. It's important to note that the Sharepoint Picklist column that this condition is checking is optional. The user can pick one of the values, or leave it NULL. I CANNOT change this column to required per the business requirements of the list.
And here is the child flow where I define the inputs that I'm passing from the parent:
So when I test the child flow with
It fails with
Unable to process template language expressions for action 'Condition' at line '0' and column '0': 'The template language expression 'triggerBody()['text_3']' cannot be evaluated because property 'text_3' doesn't exist, available properties are 'number, text, text_1, text_2, boolean, boolean_1'. Please see https://aka.ms/logicexpressions for usage details.'.
Where 'text_3' is that last input "GUEST_ACCOUNT_TYPE".
I made GUEST_ACCOUNT_TYPE optional as confirmed by the schema:
{
"type": "object",
"properties": {
"number": {
"title": "LIST_ID",
"type": "number",
"x-ms-dynamically-added": true,
"description": "Please enter a number",
"x-ms-content-hint": "NUMBER"
},
"text": {
"title": "Why",
"type": "string",
"x-ms-dynamically-added": true,
"description": "Please enter your input",
"x-ms-content-hint": "TEXT"
},
"text_1": {
"title": "UNIT_CODE",
"type": "string",
"x-ms-dynamically-added": true,
"description": "Please enter your input",
"x-ms-content-hint": "TEXT"
},
"text_2": {
"title": "UNIT_NAME",
"type": "string",
"x-ms-dynamically-added": true,
"description": "Please enter your input",
"x-ms-content-hint": "TEXT"
},
"boolean": {
"title": "GUEST",
"type": "boolean",
"x-ms-dynamically-added": true,
"description": "Please select yes or no",
"x-ms-content-hint": "BOOLEAN"
},
"boolean_1": {
"title": "AUP",
"type": "boolean",
"x-ms-dynamically-added": true,
"description": "Please select yes or no",
"x-ms-content-hint": "BOOLEAN"
},
"text_3": {
"title": "GUEST_ACCOUNT_TYPE",
"type": "string",
"x-ms-dynamically-added": true,
"description": "Please enter your input",
"x-ms-content-hint": "TEXT"
}
},
"required": [
"number",
"text",
"text_1",
"text_2",
"boolean",
"boolean_1"
]
}
The error message is clear: since the input was defined, it's expecting a value. But why can't I use lack of a value (text string) in the condition?
This is a bug in the designer. If you change the field to optional, the designer doesn’t recognize this immediately. You can save the flow, reload it and grab the dynamic content again or you can put in the question mark by yourself.
triggerBody()?['text_3']