I get this message in a Flow:
The template validation failed: 'The template action 'Condition' at line '1' and column '1668' is not valid: "Unable to parse template language expression 'contains(body('Create_item')?['Subject'], ''1332'')': expected token 'RightParenthesis' and actual 'Integer'.".'.
The idea is that when a new email arrives it creates an item in a SharePoint list. The Subject of the email gets copied into the a list item. Then it is going to send an email. But only if the subject does not contain '1332'. So I made a condition. See image below. Does anyone have any idea what might be wrong?
Solved! Go to Solution.
Hi RedK,
Please change the condition to the following and test if this one works.
Regards,
Mona Li
Hi RedK,
Please change the condition to the following and test if this one works.
Regards,
Mona Li
Thank you!
There's another scenario where you might encounter similar error and that is when you are trying to use the item from the loop and initializing a variable based on the current item that you are looping through. In such case try using the item()['<field name>'] expression than the outputs('<previous step name>')?['<output field name from the previous step>']. Hope this helps.
User | Count |
---|---|
97 | |
40 | |
27 | |
23 | |
16 |
User | Count |
---|---|
130 | |
51 | |
48 | |
36 | |
24 |