Introduction
How can you send weekly reports to a group of users in SharePoint? Also, how do you create an HTML table?
Step 1. Select the scheduled cloud flow.
![How to Send Weekly Reports to a Group of Users in SharePoint?]()
Step 2. Add a flow name and set the schedule for the flow duration as per your requirements. For example, you can schedule it to run weekly, every Monday at 9 AM.
![How to Send Weekly Reports to a Group of Users in SharePoint?]()
Step 3. Here’s how to get the group members.
-
Add the Send an HTTP request to SharePoint action to your flow.
-
Select the SharePoint Site Address that contains the group you want to email.
-
Select GET as the Method.
-
Add the above path to the Uri field. Replace the Your Group ID with the name of your group. This can include space characters.
![]()
Step 4. Select Email Addresses from HTTP Request Body
-
Add the Select action
-
In From field, add the below expression
-
Now add email in the Map field with the below expression
-
Now the output will come for select action as below. It means the email comes in an array with commas separated. But for sending an email, we need the semicolon; Separated email address so follow the next step. Example of output : ["abc@example.com","cbd@example.com","eb@example.com"]
![]()
Step 5. Join Email Addresses
This will create a semicolon-separated list of email addresses.
-
Add the Join action
-
In From field, add the Output from the Select.
-
Add a semicolon; in the Join field
-
Now the below output will come from the join action:
Example: abc@example.com;cbd@example.com;eb@example.com
![]()
Step 6. Get the reports from a list.
Add the Get Items action and collect the data from a SharePoint list.
![How to Send Weekly Reports to a Group of Users in SharePoint?]()
Step 7. Create a table of report
-
Add Create HTML table action
-
In From field, add a Value of Get Items
-
In the column dropdown, select a Custom
-
Now add the header and value as per your requirements.
![]()
-
Add CSS if you need better UI Using Compose action.
Step 8. Send an Email to Group Members
-
Add Send an Email (V2) action
-
In the To field, add the output of the Join action. Below is an expression of the output.
-
In the Mail body before the output of Create HTML Table, add the output of Style (Means add CSS)
-
Then add an Output of Create HTML Table
![]()
Conclusion
In this article, we have learned how to effectively send weekly reports to a group of users in SharePoint, as well as the process of creating HTML tables for data presentation.
![]()