<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=612681139262614&amp;ev=PageView&amp;noscript=1">
Skip to content

Need help? Talk to an expert: phone(904) 638-5743

Power Automate: Send a Single Email to Entire Team or Office 365 Group

Power Automate: Send a Single Email to Entire Team or Office 365 Group

Power Automate is a powerful tool that helps simplify workflows and automate repetitive tasks. In this tutorial, Jonathon Silva from Pragmatic Works demonstrates how to send a single email to an entire Office 365 Group or Team using Power Automate, avoiding the need to send individual emails to each group member.

 

The Challenge

Typically, when sending an email to multiple people in an Office 365 Group, Power Automate creates an "Apply to Each" loop. This loop results in each person receiving their own separate email, which can quickly become cumbersome if you're sending a weekly update, a project briefing, or simply organizing a lunch order. The goal here is to send a single email to the entire group, keeping all recipients in the same thread.

Jonathon walks through the process of avoiding this "Apply to Each" loop, ensuring that everyone receives the same email in one message thread.

Step-by-Step Process

1. Listing Group Members

The first step in the process is adding a new action in Power Automate to list the members of an Office 365 Group. Jonathon shows how to set up the “List Group Members” action under the Office 365 Groups connector.

  • Action Used: List Group Members
  • Select Group: Choose the Office 365 Group you want to send an email to (e.g., "Power Platform Training Team").

At this stage, Power Automate automatically adds the “Apply to Each” loop, meaning the system will try to send a separate email to each member.

2. Sending the Email to the Group

Normally, when you choose to send an email after listing group members, the “Apply to Each” loop kicks in. This loop sends individual emails to each member in the group. However, Jonathon explains that this isn't what we want in this scenario. We want to send a single email to all members, not separate emails.

3. Eliminating the Apply to Each Loop

To eliminate the need for multiple emails, Jonathon introduces the “Select Data Operation”. This operation allows us to work with the array of group members' email addresses and extract them in a way that can be used in a single email.

  • Action Used: Select Data Operation

In this operation, we choose to pass through the group members' emails and convert them into a list format that can be easily used in the “To” field of an email.

4. Formatting the Emails

The next step is to ensure the email addresses are correctly formatted. Power Automate typically separates email addresses with commas, but for an email "To" field in Outlook, addresses need to be separated by semicolons. To address this, Jonathon uses the “Join” data operation.

  • Action Used: Join Operation
  • Delimiter: Semicolon

This operation joins the array of email addresses, separating them with semicolons, which is the required format for the Outlook “To” field. This ensures that all email addresses are passed in a single line, avoiding the need for an "Apply to Each" loop.

5. Testing the Flow

After setting up the join operation, Jonathon tests the flow to ensure that the email addresses are properly formatted.

  • Action Used: Test Flow

When tested, the resulting output shows all email addresses separated by semicolons, ready to be used in the email. This confirms that the flow will send a single email to the entire team or Office 365 group.

6. Alternative Method: Using Expressions

Jonathon also demonstrates an alternative method to achieve the same result using an Expression. Instead of using the Join data operation, users can add an expression to join the email addresses with a semicolon directly.

  • Expression Used: join()

This method works similarly to the Join Data Operation, allowing users to format the email addresses without the need for the "Apply to Each" loop.

7. Sending the Email

Now that the email addresses are formatted correctly, Jonathon proceeds to set up the email action. The email addresses, separated by semicolons, are added to the To field, and the email can be sent as a single message to the entire group.

  • Action Used: Send an Email (V2)

The email is successfully sent to all members in the group, and everyone receives the same email in one thread.

Why This Method is Useful

This method is useful in scenarios where you need to keep all team members in the same email thread, such as:

  • Weekly project updates
  • Team announcements
  • Group coordination (e.g., scheduling lunch orders or meetings)

By using the Select Data Operation and Join Operation, users can easily send a single email to an entire group, avoiding the confusion of multiple threads or individual emails.

Conclusion

Power Automate makes it easy to automate email workflows, but sometimes the default actions don't always meet our needs. Jonathon Silva’s tutorial at Pragmatic Works shows how to use simple data operations to format email addresses correctly and send a single email to an Office 365 group, streamlining communications and keeping everything organized in one thread.

This approach saves time and reduces clutter, especially when sending regular updates to teams or groups. By mastering these operations, users can further enhance their Power Automate skills and make their daily workflows more efficient.

Stay tuned for more tutorials and insights from Pragmatic Works to help you unlock the full potential of Microsoft Power Platform!

Don't forget to check out the Pragmatic Works' on-demand learning platform for more insightful content and training sessions on Power Automate and other Microsoft applications. Be sure to subscribe to the Pragmatic Works Youube channel to stay up-to-date on the latest tips and tricks. 

Sign-up now and get instant access

Leave a comment

Free Community Plan

On-demand learning

Most Recent

private training

Hackathons, enterprise training, virtual monitoring