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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / New Email Data is not ...
Power Automate
Suggested Answer

New Email Data is not populating to Sharepoint list columns

(0) ShareShare
ReportReport
Posted on by
"Body copy from email is not populating the SharePoint list columns instead the code is populating.
How can I correct this.
 
I created a SharePoint list with column names that are in the email message so that when I receive the email the body copy populates to the SharePoint list columns
 
Email Example body copy:
PICTURE
An Offboard request has been completed by HR
Details:
Requested by: manager name
Requested on: Day Month Day Hour:Minute:Second TimeZone Year
 
Power Automate Process
When a new email arrives in a shared mailbox (V2) option - Populated with email addresses, subject filter and folder 
Html to text - Populated with dynamic option  "Body" 
Compose Input - expression data 
trim(split(split(outputs('Html_to_text')?['body'], 'Requested by:')[1], 'decodeUriComponent('%0A')')[0])
Compose Input - expression data
trim(split(split(body('Html_to_text'), 'Requested on:')[1],
Create item - Selected SharePoint site address
Selected List name
Advanced parameters - selected from the list 
Requested by column > dynamic option Compose - Requested By
Requested on column > dynamic option Compose - Requested on
 
When I test the flow the columns fill in with below data which is where I am stuck
Requested by column shows this data 
trim(split(split(outputs('Html_to_text')?['body'], 'Requested by:')[1], 'decodeUriComponent('%0A')')[0])
Requested on column shows this data
trim(split(split(body('Html_to_text'), 'Requested on:')[1],
 
I have the same question (0)
  • Suggested answer
    PowerDeveloperTP Profile Picture
    198 on at
     
    Not sure about the structure of your email, but below blog handles both static and dynamic email body where we can extract data. Hope this helps. Thank you.
     
     
    Thanks,
     
    Like my answer? - Hit that Thumbs Up. Resolved the Issue? - Hit Accept as Solution.
    This helps others find solutions to future issues!
  • RobElliott Profile Picture
    10,371 Super User 2025 Season 2 on at
    It looks like you are typing the trim.... expressions directly into the Compose actions. This is incorrect, you should select the Expression tab in the Dynamic Content box and add the formula in there.

    Rob
    Los Gallardos

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 255 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 169 Super User 2025 Season 2

#3
harshdeol Profile Picture

harshdeol 167 Moderator

Last 30 days Overall leaderboard