a queue msg has a MessageText of "{subject: 'test123'}"
[When items are in a queue]
-> [Get Messages]
-> [Apply to Each]
-> [Send Email] with subject from queue.
If I reference the MessageText on Email, it auto-creates the Apply to Each with 'QueueMessage' but that's empty and unusable. ALL automatic attempts fail. I had to code this: array(outputs('Get_messages')?['body/QueueMessagesList']) for it not to complain about not having an array. However, the array is a count of 1 (correct), but the QueueMessage is empty []. All references to items(...) or item() or Current Item (same thing) fails to provide anything.
I know this is possible b/c one time I pumped the email body full of dynamic variables and the {subject...} came through as text. When I put it alone on the Subject field, it again auto-created a secondary Apply_to_Each and broke it all over again. There also appears to be no way to turn off the automatically applied 'Apply to Each' in case that's the problem.
Here's the odd part. In order to switch over to a ServiceBus solution, I replaced the Trigger (only) with an SB queue trigger, intending to replace the rest. Then it picked up the message (GetMessages) worked with a non-empty result. Clearly, I can't have a false trigger (on a diff queue), but is it a known issue about Azure Queue triggers messing up the queue data in the flow?
I would appreciate any helpful tips on getting a queued message MessageText. ... which I assume I can then also get the MessageId/Receipt to delete it when complete.

Report
All responses (
Answers (