The input is a JSON object, inside of which there is a data set and an array of objects:
{
"approvalTheme":"Upgrade Win 10 to Win11",
"approvalComment":"Additional information",
"approvalUrl":"https://localhost.com",
"approvalRequesterEmail":"mail@test.ru",
"requestNum":123,
"approvalDateTime":"2022-12-10T00:00:00.000Z",
"approvalSource":"Windows center",
"approvalCallbackUrl":"https://localhost.ru",
"approversList":[
{
"approverEmail":"mail1@test.ru",
"approvedOrder":1,
"approvalMode":"all"
},
{
"approverEmail":"mail2@test.ru",
"approvalOrder":2,
"approvalMode":"atLeastOne"
},
{
"approverEmail":"mail3@test.ru",
"approvalOrder":2,
"approvalMode":"atLeastOne"
},
{
"approverEmail":"mail4@test.ru",
"approvalOrder":3,
"approvalMode":"all"
}
]
}
How to build a flow to go through all the steps in turn and send a message to the team to all users on the step.
Solved! Go to Solution.
Hi @ppl111
The following expressions below should help you loop through the approvers List and send an email:
The expressions used are:
variables('varTeamsJSON')?['approversList']
items('Apply_to_each')?['approverEmail']
Hope help helps:
Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.
Hi @ppl111
The following expressions below should help you loop through the approvers List and send an email:
The expressions used are:
variables('varTeamsJSON')?['approversList']
items('Apply_to_each')?['approverEmail']
Hope help helps:
Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.