Hi
I am trying to retrieve flagged emails from a shared mailbox and then add them as a task in a Teams Planner
This is proving difficult as it's a shared mailbox I am using a Send HTTPS Request action which fetches the emails fine but the Output is an Object rather than an array so I then can't process the individual mails in an Apply to Each action
Much of what I have seen suggest using the output from the Send HTTP Request in the Apply to Each by using something like outputs('Send_an_HTTP_request')?['body']['value']) however this is not an Array (in my case anyway) so I am not sure how this would ever work.
I have tried converting the object to an array with
Array(body('Send_an_HTTP_request'))
However the results don't really look like an array
Any pointers please?
Many Thanks