Hi there
I'm using the first() expression in a flow when it comes to Approve/Reject because I want to avoid Apply Each. The expression I used is this:
first(body('Freelancer_Approval')?['body/responses'])
and this is the error message I got:
Unable to process template language expressions for action 'Approved_or_Denied' at line '0' and column '0': 'The template language function 'first' expects its parameter be an array or a string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#first for usage details.'.
I've successfully used first(body('Freelancer_Approval')?['responses'])?['comments'] to get the comments, but I'm unsure as to where I'm going wrong here with the response. Any help would be awesome.
I'm using it in a condition as in if EXPRESSION is equal to Approve; if yes, do that, if no then do that.