Hello,
I'm wanting to filter an array of values based on whether a field in the array contains either "HPO" or "GPO"
This is my flow and the error I get when just trying to filter on contains HPO
I'm taking the body of the previous step as my data to filter and then attempting to add another filter, but I get this error
Action 'Filter_PO_Number_Exists' failed: The execution of template action 'Filter_PO_Number_Exists' failed: The evaluation of 'query' action 'where' expression '@contains(item()?['Pending Supplier Invoices[PO Number]'],'HPO')' failed: 'The template language function 'contains' expects its first argument 'collection' to be a dictionary (object), an array or a string. The provided value is of type 'Null'.'.
Any help would be appreciated.
Thanks,
Michael