Hi all,
I have a bit of an issue with a flow I'm building to create outlook events that we can later follow up on and log whether they were successful and add notes and whatnot.
Everything to create the item is working well, but the problem is on my update list item step at the end where I am adding the outlook event ID in case the event needs to be altered that could still be done from the list using the ID to find it.
I have a people picker column that allows people only / multiple selections for selecting trainees. Each trainee gets added to the invite and their manager is pulled and added as optional to the invite to keep them apprised of the situation.
On my update list item action, I have to add the value for for these trainees because I have the field as required. I am initializing an array variable an applying to each appending the user claims variable. Upon completion, I see outputs in the flow report, but the field gets cleared out in my list.
I have this same solution in place elsewhere but not for a people picker, just a regular multi-select choice column, and those work fine, so I'm wondering if anyone has any ideas. I have tried claims and I have tried the email value in the variable, but same issue persists.
Thank you for your time.
I will give this a try and let you know.
Thank you for the detailed help.
Instead of the Switch function I'd recommend creating a JSON object instead and using an expression. I would recommend creating a new flow for you to test out the concept first before adding it to your current flow. I demo this concept in this section of one of my tutorials.
Add a Compose action with your dynamic content key. Insert opening and closing curly brackets. Between the curly brackets enter a line for each content pair.
In your case, the location would be on the left (before the colon) and the email address(es) would be on the right. If you have multiple email addresses ensure you have a semi-colon separating each.
{
"Location 1": "email1@email.com;email2@email.com"
}
There should be a comma after each line except for the last line.
Add another Compose action to store a testing value (aka Location in your case). Tip: Always rename your actions especially if you have multiple instances of the same action in your flow. It'll help to keep things organized.
This Compose action is optional, you can insert the value right into the expression. However to help you better understand what's going on, I recommend you use a Compose action. You will replace this with dynamic content from your actual flow. Keep in mind this value must match the text exactly as you have it in your key. Enter any value for testing purposes.
Add one more Compose action to store an expression. Insert a question mark and square brackets.
In between the square brackets insert the output from the Compose action above.
Go to the start of the expression by pressing the up arrow key. Insert the output from the Compose action with the JSON object.
This expression will output the value on the depending on what value is inserted into the square brackets of the expression.
Run a test. Review the outputs. You can adjust the value in the Compose action to another value and run another test. Ensure the output is what you are expecting.
You can copy these actions int your current flow and insert the appropriate dynamic content (location value in your case) into the Compose action that is holding the value.
----
It's unclear to me the reason you have initialized these two variables:
When updating a multi-choice person column. The array structure that is expected is
[
{
"Claims": "emailaddress1@email.com"
},
{
"Claims": "emailaddress2@email.com"
}
]
If the Trainee's dynamic content is a multi-person field, you can use a Select action. In the From field, insert the multi-person dynamic content.
In the Key field, enter the word Claims. In the second value field insert the multi-person email dynamic content.
Run a test. This is what the output should look like.
You can take the output from the Select action and insert it into the multi-person column field of your Update Item action.
The Select action outputs an array. You can use the output of the Select action in an Apply to Each action. The Compose action is optional, however it can help with troubleshooting. I'm using it to output the current email being looped through.
You'll need to insert an expression:
item()?['Claims']
Insert the Get manager (V2) action.
Add an Append to Variable action to collect the display name and email address of each manager. The format is the same as the JSON object.
Add a Compose action outside of the Apply to Each action to output the variable.
Run a test. Review the outputs.
Use a Select action to collect the Email Addresses only. In the Fro field, insert the output from the Compose action above (or the variable).
Insert an expression.
item()?['Dynamic Content Key']
Replace the text in blue with the appropriate key. In this case, Email. You'll need to repeat this for the Display Name.
Insert a Compose action and use the join() function to convert the email from an array to a string.
Run a test. Review the outputs.
I would recommend adding Scope actions to your flow to keep it organized. The Scope action is optional however you can quickly collapse multiple actions with a single click.
Hello,
The following are seperate pictures, but they are in order. Nothing is missing except a few more Switch options off to the sides, but they just take the value of the list dropdown for room name and append a variable with the room email so I can use it to book the room.
But, there are no errors to show, unfortunately:
Thank you for looking.
@LoufromNH It would provide more insight if you could click on all actions to expand them. It's hard to understand the logic when the actions aren't expanded.
Hello, I will attach a few photos. The thing is I'm not getting any errors. I was but I've cleared them and now am observing this strange behavior. My thinking is that the values aren't validating for the people picker column so they end up just not saving, but since an overwrite was attempted the old values aren't available anymore either.
@LoufromNH It's hard to offer any recommendations without seeing how your flow is laid out. Upload a screenshot of your flow in edit mode and the error you are receiving, it would help to provide more insight.
In the meantime, you might be interested in this YT Tutorial:
How to Handle Multi-Person SharePoint Item Notifications in Outlook and MS Teams with Power Automate
Do you want to know how to send an email to all users assigned to a SharePoint item? If so—this Power Automate tutorial is for YOU 🫵.
In a different YouTube tutorial I covered how to build a Power Automate flow that sends a single email to each user with the tasks assigned to them.
However, that tutorial only covered a scenario where each task is assigned to a single user. What if your task is assigned to more than one user?
In this Microsoft Power Automate tutorial I’ll cover how to create a flow that is triggered by selecting an item. This automation will send an email to all assigned users for the selected task. I’ll also show you how to adjust your flow so that you can send a message in Teams. Then I’ll show you how to collect a list of unique users that have been assigned to multi-person tasks. Using this concept, we’ll edit the flow from the previous tutorial so that it works with a multi-person column.
IN THIS VIDEO:
âś… How to trigger a flow from a selected file
âś… How the multi-person column data outputs
âś… How to use the Select action to get all assigned to users of a SharePoint item
âś… How to use the Join action to convert an array of email addresses into a string
âś… How to send a single email to all assigned to users of a SharePoint item
âś… How to send an email to each assigned to user of a SharePoint item
âś… How to send a Teams message to each user assigned to a SharePoint item
âś… How to return a list of unique users from the multi-person column in a SharePoint list
âś… How to use a Filter Array action to return all SharePoint list items assigned to each user
âś… How to group Power Automate actions together with the Scope action
âś… How to edit a previous flow
stampcoin
55
Michael E. Gernaey
39
Super User 2025 Season 1
VictorIvanidze
26