I have set the ODATA filter as IssueStatus eq 'DTC to Verify' which works fine to send them a list of all of issues that need to be reviewed.
The problem I'm running into is that even when there aren't any issues set with the status of DTC to Verify, it's still sending an email but an empty list which is a bit goofy. I only want an email to be sent if there are issues.
Is there a way to get it to NOT run if there aren't any under that status? I tried adding the Trigger below, but when trying to test (using manual) it errors and comes up with Cannot read property 'properties' of undefined. Or Maybe this is ok and it's supposed to do that?
@equals(triggerBody()?['IssueStatus']?['Value'],'DTC to Verify')