Hi all,
I have looked everywhere and can't find the answer to what I assume is something very basic that I am missing.
I have an sql query that runs in my flow, it pulls back 5 rows only. I want to use the outputs from this query in a post on teams. Which I believe would be best done through a variable. How would I initialise a variable for effectively each combination of message type and each other column?
For example:
SQL query results:

[
{
"MessageType": "Adjustment",
"ErrorMessages": 0,
"ErrorMessageLines": 0,
"ReceivedLines": 2,
"ReceivedMessages": 2
},
{
"MessageType": "LoadReceipt",
"ErrorMessages": 0,
"ErrorMessageLines": 0,
"ReceivedLines": 6,
"ReceivedMessages": 2
},
{
"MessageType": "Movement",
"ErrorMessages": 0,
"ErrorMessageLines": 0,
"ReceivedLines": 91,
"ReceivedMessages": 91
},
{
"MessageType": "PickList",
"ErrorMessages": 2,
"ErrorMessageLines": 4,
"ReceivedLines": 7,
"ReceivedMessages": 3
},
{
"MessageType": "TransferReceipt",
"ErrorMessages": 0,
"ErrorMessageLines": 0,
"ReceivedLines": 13,
"ReceivedMessages": 4
}
]
What I want to do is be able to use each of the elements as separate variables (e.g. Transfer receipt error messages = 0)
How would I achieve this?