Ok, format of multi-person is this:
[
{ "Claims": "i:0#.f|membership|test@test.com" },
{ "Claims": "i:0#.f|membership|test1@test.com" }
]
So you have to bring it to this form.
You can split the out of your AI action to an array.
split(body('Parse_AI')?['assignedTo'], ',')
Use a compose and please adjust. You should receive an array like this:
[
"test@test.com",
"test1@test.com"
]
Then use a Select action:
From: outputs('Compose_EmailsArray') (it's your array that you just created)
Map:
Left side: Claims and
right side: concat('i:0#.f|membership|', trim(item()))
Result should be this
[
{ "Claims": "i:0#.f|membership|test@test.com" },
{ "Claims": "i:0#.f|membership|test1@test.com" }
]
Exactly what you can use for multi-person.