Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - General Discussion
Answered

Generate Newsletter from SharePoint list

Like (0) ShareShare
ReportReport
Posted on 8 Dec 2021 14:35:41 by 25

Hello,

 

I am using Microsoft Forms to populate a sharepoint list. That part I have had no problem with. Users fill out the form with their newsletter entry and a link to a picture to include. The sharepoint list has two columns (Entry & Picture).

 

Now I want to create a flow that takes the items in the list and populates an email template. I'm using get items to get all the items added within a date range (that way I can use the same list and just update the odata filter each week). I feel like I'm completely missing something, but how do I use the individual items from the list?

 

What I'm doing is taking the HTML from the newsletter I created in outlook, and I just want to add the content from the sharepoint list to the relevant parts of the HTML in the send an email action. I don't want all the text from every list item in the same place as that's not how I want the newsletter to appear (each newsletter entry is in a different table row). I hope I'm making sense. I've spent the day googling and I haven't made much progress. 

 

Any help would be much appreciated.

  • Verified answer
    jinivthakkar Profile Picture
    4,179 on 09 Dec 2021 at 16:29:03
    Re: Generate Newsletter from SharePoint list

    @STA-Admin  This is what I understood and built

    List 

    jinivthakkar_0-1639067067009.png

    Flow

    jinivthakkar_1-1639067099955.png

    Email I receive 

    jinivthakkar_2-1639067147350.png

    you only need a variable where you build html

    jinivthakkar_3-1639067235744.png

    and add the html in email body

    jinivthakkar_4-1639067270103.png

    Hope this helps.

    --------------------------------------------------------------------------------

    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

     

     

     

  • STA-Admin Profile Picture
    25 on 09 Dec 2021 at 15:06:55
    Re: Generate Newsletter from SharePoint list

    Thanks so much for the response. Picture below:

     

    samplelist.png

     

    These are obviously just sample entries. The idea is to take the content and insert it in the relevant part of the HTML template.

     

    Basically like this:

     

    <table>

    <Tr>

    <td>

    <img src="picture1">

    </td>

    <td>

    <p>Title1</p>

    <p>Entry1</p>

    </td>

    </tr>

    <tr>

    <td>

    <img src="picture2">

    </td>

    <td>

    <p>Title2</p>

    <p>Entry2</p>

     

    Does that make sense?

     

    Title 1 = Staff Training Day

    Title 2 = Politician Visits School

     

    Entry 1 = This is a test entry...

    Entry 2 = This is a second test entry...

  • jinivthakkar Profile Picture
    4,179 on 09 Dec 2021 at 14:53:43
    Re: Generate Newsletter from SharePoint list

    @STA-Admin what does entry column hold ? please share image of list with sample data.

  • STA-Admin Profile Picture
    25 on 09 Dec 2021 at 11:50:21
    Re: Generate Newsletter from SharePoint list

    Bump. Hoping for some help!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - General Discussion

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 8 Super User 2025 Season 1

#2
ankit_singhal Profile Picture

ankit_singhal 7 Super User 2025 Season 1

#3
David_MA Profile Picture

David_MA 4 Super User 2025 Season 1

Overall leaderboard
Loading started