I am using a for loop to run through a set of tickets I am getting from Zendesk. There is a custom field in Zendesk that has a string in it representing the number of minutes left on the ticket. This can be null, "0" or a "30" for example.
I have created a field in my Logic App of type Integer
I am getting the data out with no problems using the following expression
int(string(coalesce(body('Filter_array_for_Hours')[0]?['value'],0)))
For example, one ticket has this:
[ { "id": 23810369, "value": null } ]
and another ticket has this:
[ { "id": 23810369, "value": "15" } ]
The resultant value in the loop is respectively:
The condition I have is:
but it just returns false every time. Any ideas where I am going wrong?
https://stackoverflow.com/questions/66082542/azure-logic-app-condition-greater-than-not-working February 07, 2021 at 06:15AM
没有评论:
发表评论