I am a complete newbie to creating flows and I am in need of creating a flow that will pull data from 7 different Sharepoint lists and then allow me to use that data into a email that will send daily. I currently have my flow set up that starts with the recurrence. The flow will generate every morning at a certain time and run. Then it configures my time zone run date. And then I currently have 7 parallel branches that will pull the different lists I need to pull data from for my recap email. What I am having trouble with is, I have created an initialize variable and compose for each "get Items" branch. When I apply to the send email, it will allow me to format my email and pull each piece of data from each list I need... But when the flow runs... it is not pulling the most recent data from each list, and I am getting 4 identical emails every time the flow runs. I think that is because there are 4 different "Apply to each" on the send email.
How do I make it only pull the data from the same date for each list and only send me one email????
TIA
Hi @Jmorgan83 ,
I've love to look at this. Can you share your flow with the actions expanded and your last run output please?
Not sure if this is what you are looking for, but what you are asking sounds like something I am doing. Since you want to send one e-mail, you will manually generate an HTML table from your different lists and then convert it to a pdf file since there are limits to how many rows you can send in an html table in an e-mail. Here is the basics of my flow:
You can ignore the child flow as it is not essential to what you need. The two initialize variables are:
The next eight scope actions all do the same thing except they get data from different lists:
I use a filter query action in the get items action to return only what I need, which for this report is pending items. This is an example of the filter query:
Approval_x0020_Status1 eq 'Pending'
I use a length expression to make sure that the get items action found at leats one item, which uses this expression:
length(outputs('Get_items_General_Legal_Requests')?['body/value'])
Then we create the rows for our table:
The final Scope action pulls everything together:
The first compose action creates the able header and includes the CSS for styling:
<style>
h2 { font-family: Arial, Helvetica, sans-serif; text-shadow: 2px 2px 2px #CCCCCC; font-size: 22px; color: #0038A6; }
Table { font-family: Arial, Helvetica, sans-serif; background-color: ; #ffffff;
border-collapse: collapse; }
Table td, Table th { border: 1px solid #000000; padding: 6px; }
Table th { font-size: 15px; font-weight: bold; text-align: center;
background-color: #bad8f2; color: #000000; }
body { margin: 6px; }
</style>
<h2>@{variables('Count')} Pending Legal Requests as of @{formatDateTime(utcNow(),'D')}:</h2>
<table>
<tr>
<th>Form</th>
<th>Request #</th>
<th>Submitted</th>
<th>Assigned to</th>
</tr>
The second compose action closes out the table and has a couple of paragraphs of explanatory text, which I will not show.
</table>
<p>Explantion information</p>
<p>Contact information</p>
The final compose action joins all of the rows in the array to compress the HTML:
join(variables('Row'),' ')
The Create HTML file puts everything together:
The order of the Outputs is Compose Header, Compose Rows, Compose Footer.
I think the reset of the actions are self-explanatory. But if you have questions on what they do, just ask.
I didn't know that you could only pull so much data for rows in HTML.
I am generating a Shift Recap. SO my 7 lists are one for each shift, and each has 11 columns of data that I am going to pull into a recap email. I basically want to pull the name of the person from each shift in a table at the top of the email and then I want a table that will be for each of those 7 shifts saying who the person was, their shift and then pull all of the data for each column on their list. And then repeat. The attached image is what I am looking to have outsource in the HTML. I have the HTML created, but I need to pull the data and I guess its too much data to pull. I dont want to export to a pdf. I guess I need to make the flow generate each table and then combine those in the HTML code to generate the email?
Yes, you may need to generate a couple of tables based on your image. I cannot find anything documented with Outlook and a limit on rows, but I was having problems when just putting the HTML into Outlook and sending it. Outlook is picky about HTML, so it may have been something in my coding rather than a limitation. If you don't have any issues with putting the HTML table in Outlook, then at least you'll have the PDF idea as an option to fall back on.
SOOO I have great news!!!! I managed to get the table to work out! I went a completely different route and here is my flow.
But I am now having a different issue.... Now when my data exports into the table in the email.... How do I get that data in the one column to be all different paragraphs? Is it even possible since that data is being pulled from the sharepoint? I should have 4 separate lines, in that one cell.
That's great you figured it out! Great job! I will have to think about this and see what can be done to the break lines.
Dear Community Members, We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd. During this period, members will not be able to Kudo, Comment, or Reply to any posts. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!
We are excited to announce the Summer of Solutions Challenge! This challenge is kicking off on Monday, June 17th and will run for (4) weeks. The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities. Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”) - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024 Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods. You must enter into each weekly Entry Period separately. How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different. Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers. At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing. Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner. A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random. Individuals will be contacted before the announcement with the opportunity to claim or deny the prize. Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners. Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event. ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE** Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24 17 @Anil_g 7 @ManishSolanki 13 @eetuRobo 5 @David_MA 10 @VishnuReddy1997 5 @SpongYe 9JhonatanOB19932 (tie) @Nived_Nambiar 8 @maltie 2 (tie) @PA-Noob 2 (tie) @LukeMcG 2 (tie) @tgut03 2 (tie) Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate @Deenuji 12@ManishSolanki 19 @Anil_g 10 @NathanAlvares24 17 @VishnuReddy1997 6 @Expiscornovus 10 @Tjan 5 @Nived_Nambiar 10 @eetuRobo 3 @SudeepGhatakNZ 8 Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22 Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2 Anil_g2 SharonS2
On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners. The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights. Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.
We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for. We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer. Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together. Here's to new beginnings and endless possibilities! If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport. To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages