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 / Parsing Data in an Ema...
Power Automate
Answered

Parsing Data in an Email Based on a Delimiter and Create a SharePoint List Item

(1) ShareShare
ReportReport
Posted on by 95
Hi all
 
I have an interesting use case for which I haven't found a clear answer yet.
 
I have an automated email that gets sent to an unmonitored mailbox when an evaluation needs to be filled out for a completed project. The format includes
 
Project Number | ###
Project Name | xyz
Project Senior Lead | Name | Email
Project Lead | Name | Email
Project Participants | Name1 | Email1 | Name2 | Email2 | etc... ***This varies from project to project****
 
The problem I'm trying to solve is related to Project Participants because it will ALWAYS vary by project. The goal is to create a SharePoint list item (evaluation) for each Participant and one evaluation for the Lead. In the case where we have 8 PTs, we would have 9 items created (1 for each PT and 1 for the Lead).
 
The format for Number, Name, Senior Lead, and Lead is static -- and I know how to parse/split these fields. I'm stuck on how to account for the varying Participants. My fields in the SharePoint list include SrLeadName, SrLeadEmail, LeadName, LeadEmail, PTName, PTEmail. I was trying to experiment with some kind of count variable but got stuck. If I need separate lines for the names/emails of the PTs, I can probably have the team do that and make it align.
Categories:
I have the same question (0)
  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at
    Please refer this blog on how to extract values from email.
     
    Once you have the Participant information, you can use split() to create an array of participant names.
    You could then loop through this list and create items in SharePoint.
     
    Let me know if you run into issues.
     
  • Chris110 Profile Picture
    95 on at
    Thanks Sudeep - I'm familiar with how to parse the data when it's static (e.g. one contract number in your example) but I'm stuck on what to do when there's a varying number of delimiters separating data that needs to be split. And how to take those and create SharePoint list items.
  • Suggested answer
    SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at
    Hi Chris, 
    To handle varying number of delimiters, save the output of split in an array and loop through the array.
    Do you want me to build a sample for you? Let me know.
     
  • Chris110 Profile Picture
    95 on at
    Hi Sudeep
     
    An example of that would be incredibly helpful! Thank you very much.
     
    I would assume that, within the loop, we would also have the create item in SharePoint? And outside the loop, we can split/parse the static data?
  • Suggested answer
    SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at
    Please see the attached sample

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 241 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 179

#3
Haque Profile Picture

Haque 159

Last 30 days Overall leaderboard