Send emails to a SharePoint group using Power Automate.

 The limitation of Power Automate is that it can't send emails to a SharePoint Group. Now if you ask t why, as even SharePoint Designer based workflow could do that? The answer is simple MS doesn't send it as SharePoint Group aren't associated with an email address.

 However, the community and great minds have come up with various solutions from hardcoding the emails in variable to using GetItems actions to store the users emails in a SharePoint action.

But when I was stuck at this problem, I wanted to read users from SharePoint Groups. Another problem with Power Automate is that MS keeps updating it. So you may find a blogpost related to the problem you are at but now there may be an easier way to fix it as MS may have added a new feature or functionality.

So the solution below is also a hybrid of multiple solutions that i looked into.

Step 1:

What we are doing in here is initializing a string variable, we have named it as SharePointGroup.

Step 2:

Use the Send an HTTP request to SharePoint action.


Step3:

Generate a schema for the Parse JSON action in Power Automate.

All we need to do in here is test the flow and then click on Send an HTTP request to SharePoint action.
Copy the body from this action.



Step 4:

Add a "Parse JSON" Action and paste the copied schema 


Step 5:

Add an "Append to string Variable" action and select the variable name as the SharePoint group or what is the name of variable you created in Step 1.

In Value select Email.


Flow will automatically apply the Apply to each loop around this.

That's it. You can send emails to SharePoint Groups now.

Comments

Popular posts from this blog

Creating Nested Galleries in Power Apps. (Parent-Child Relationship)

How to reset a datepicker control in PowerApps?

Reset () function failing to work on Edit form for Combo boxes in Power App.