Forum Discussion

Strydom1977's avatar
Strydom1977
Copper Contributor
Sep 20, 2023

Sending individual emails based on a multiple selection person/group column

Hi,

 

I'm trying to isolate the individual email addresses based on a multiple selection person/group column and then send the individual an email rather than all email addresses in the column.

 

Is there a solution for this through Power Automate?

  • LeonPavesic's avatar
    LeonPavesic
    Silver Contributor

    Hi Strydom1977,

    Sending individual emails based on a multiple selection person/group column in Power Automate is a possibility

    Here is an example of how you could use this to send individual emails to members of a team when a new project is created:

    1. Create a new flow in Power Automate and select the "When an item is created" trigger for a SharePoint list that contains your team members.
    2. Add an "Apply to each" action to your flow and select the "Team members" column as the input.
    3. Add a "Get user profile" action to the "Apply to each" loop and select the "Email" field as the output.
    4. Add a "Send an email" action to the "Apply to each" loop and enter the recipient's email address in the "To" field.
    5. In the subject line, you could enter something like "New project created!" and in the body of the email, you could include a link to the new project.
    6. Save your flow and test it to make sure that it is working as expected.


      Please click Mark as Best Response & Like if my post helped you to solve your issue.
      This will help others to find the correct solution easily. It also closes the item.


      If the post was useful in other ways, please consider giving it Like.


      Kindest regards,


      Leon Pavesic

    • Strydom1977's avatar
      Strydom1977
      Copper Contributor
      Dear Leon,

      Thank you so very much for your response, that worked a charm. Can I pick your brain to enhance this. If we want to customise the emails relevant to the person, so if the person is X and they need to do report Y, then when it picks up the report it identifies the person and sends a personalised email stating that you need to do report Y?
      • LeonPavesic's avatar
        LeonPavesic
        Silver Contributor

        Hi Strydom1977,

        you can customize the emails based on the person's name and the report that they need to do. To do this, you can use the following steps:

        1. Add a "Create string" action to the "Apply to each" loop and enter the following expression in the "Output" field:

          "Dear [Person Name], Please complete report [Report Name] by [Due Date]. Thanks, [Your Name]"
        1. Replace [Person Name] with the dynamic content for the person's name. Replace [Report Name] with the dynamic content for the report name. Replace [Due Date] with the dynamic content for the report due date. Replace [Your Name] with your name.

        2. Add a "Send an email" action to the "Apply to each" loop and enter the following expression in the "Body" field:

          @{outputs('Create string')}

        This will send a personalized email to each person in the "Team members" column, with the relevant information about the report that they need to do.

        Please click Mark as Best Response & Like if my post helped you to solve your issue.
        This will help others to find the correct solution easily. It also closes the item.


        If the post was useful in other ways, please consider giving it Like.


        Kindest regards,


        Leon Pavesic

Resources