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 / Adding items to a Shar...
Power Automate
Answered

Adding items to a SharePoint list when an email is received in Outlook

(0) ShareShare
ReportReport
Posted on by 10

Hi Team,
Im struggling with a power automate flow. My requirement is when a new starter email comes in to my outlook, I wanted to update those details in a SharePoint list. 

 

an example of new starter email below:

Faby619_0-1718146879115.png

 

When I receive the email, I wanted to extract specific data such as Subject of the email, First Name, Last Name, Designation and update these in a SharePoint list. I have already created a SharePoint list as below.

Faby619_1-1718146878856.png

 

1. firstly, the flow should remove "Assigned to Group" word from email subject before setting it as the subject of the email in the sharepoint list. I used this function below but i get an error. 

Faby619_2-1718146879561.png

 

2. second question, how can I retrieve the details of First Name, Last Name, Designation from the email body and update to the relevant column in the sharepoint list ?

Your help will be highly appreciated on this. 

Categories:
I have the same question (1)
  • Verified answer
    BizAppBee Profile Picture
    89 on at

    Hi @Faby619,

     

    1. You can use the replace function to replace 'Assigned to group' with an empty string 

    replace(triggerOutputs()?['body/subject'],'Assigned to Group','')

    BizAppBee_0-1718166829344.png

     

    I created a test flow and sent myself an email with the same subject line as your screen shot and it was able to remove the string successfully. You can then use the output of your compose when creating an item on your sharepoint list

    BizAppBee_1-1718166900456.png

    2. Checkout this thread --> https://powerusers.microsoft.com/t5/Building-Flows/Extracting-text-from-email/m-p/335540#M36364 

     

    Hope this helps!

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    Thank you!

    Leoza

  • Faby619 Profile Picture
    10 on at

    Thank you @BizAppBee . you are a legend.

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 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard