web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Assistance with Email ...
Power Automate
Answered

Assistance with Email Parsing and SharePoint List Updating

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

In the example below, i want to take the values below 1 and 2, and store them in different columns of a SharePoint list. 

For the text extraction, the emails will have structured text where the line i need always starts with a bulletpoint. 

It would be best to split the lines at every dash that's surrounded by spaces, and skip the line with bulletpoint when no such dash is found in it. 

 

2023-11-08 07_45_26-_Naamloos - Kladblok.png

 

Later, when the e-mail gets categorised (E.g. Marked as Yellow or Green), I want a specific 'choices column' in the SharePoint list to update.

 

Could anyone provide advice on how to set this up?

 

Thank you in advance for your help!

 

 

Categories:
I have the same question (0)
  • Verified answer
    grantjenkins Profile Picture
    11,063 Moderator on at

    This will hopefully get what you need with regards to extracting out the ID and Description.

     

    See full flow below. I'll go into each of the actions.

    grantjenkins_0-1699445737696.png

     

    When a new email arrives will trigger when we receive a new email.

    grantjenkins_1-1699445778375.png

     

    Html to text converts the body of the email to text.

    grantjenkins_2-1699445808524.png

     

    Filter array splits the data by new line, then removes any rows that don't begin with an asterixis *

    //From
    split(outputs('Html_to_text')?['body'], decodeUriComponent('%0A'))
    
    //Filter
    trim(item())

    grantjenkins_3-1699446327447.png

     

    Select uses the output from Filter array and uses the following expressions.

    //ID
    trim(split(item(), ' - ')[1])
    
    //Description
    trim(split(item(), ' - ')[2])

     grantjenkins_4-1699446399012.png

     

    Apply to each uses the output from the Select.

    grantjenkins_5-1699446427333.png

     

    Create item uses the following expressions to add the data to the SharePoint List.

    //Title
    item()?['ID']
    
    //Description
    item()?['Description']

    grantjenkins_6-1699446518098.png

     

    After running the flow we would have new items added to our list.

    grantjenkins_7-1699446579337.png

  • MK-04030856-0 Profile Picture
    on at

    Thank you so much! This works perfectly.

     

     

  • Manish Solanki Profile Picture
    15,167 Moderator on at

    Hi @grantjenkins 

     

    Just for learning purpose, why have you filter the result with asterisk? Is it for filtering bulleted points in the email text?

     

     

    Thanks & Regards,

    Manish Solanki 

  • grantjenkins Profile Picture
    11,063 Moderator on at

    Correct - the bullet points were coming into the flow as an asterisk so used that in the filter.

  • shirokun Profile Picture
    on at

    Thank you this is helpful! I have figured out how to create an item but i have trouble updating the item on sharepoint. could you explain how i can parse and update the item thats already on sharepoint list? thank you!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 608

#2
Valantis Profile Picture

Valantis 416

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard