I'm having an odd issue, and I seem to be doing everything right based off of the MS post about Office 365 Groups Mail connector.
The issue that I'm having is that when I used "Get a Thread Post" action is that it creates a "Apply to each" for the the conversation id variable, and then creates a second nested "apply to each" to the post id variable. When I then run the flow I get an error on the second "Apply to each" saying:
"The execution of template action 'Apply_to_each_2' failed: the result of the evaluation of 'foreach' expression '@items('Apply_to_each')' is of type 'Object'. The result must be a valid array."
This is infuriating on two levels, I'm not adding the apply to each, MS is. And there's only one e-mail in each thread there's not even multiple items to parse. Secondly, MS' own post on the connector does this same flow and there's no issues with it: https://flow.microsoft.com/en-us/blog/use-our-new-office-365-groups-mail-connector/
Can someone direct me to what I need to tweak to fix the error on the second "apply to each"?