cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

Send an E-mail to SharePoint

Hello. I need to create a flow that, when an email is received, it only takes a few lines from the body of the email and saves it to a SharePoint table. is it possible to do that? Thanks!
1 REPLY 1
Community Support
Community Support

Hi @Lipe,

 

Will the email always be in the same format?

What information would you like to extract from the body?

In my scenario, I am going to extract Name and Birthday from the email body and save them into the SharePoint list.

Trigger the flow with When an email arrives.

3.PNG

Add HTML to text to convert the email body to plain text.

Add compose 2 with the following code:

length(body('Html_to_text'))

 

 Add Compose 3 with the following code:

add(indexOf(body('Html_to_text'),'Name'),5)

 

Add Compose with the following code to return the Name:

substring(body('Html_to_text'),outputs('Compose_3'),sub(indexOf(body('Html_to_text'),'Birthday'),outputs('Compose_3')))

 

 Here is the screenshot for your reference.

1.PNG2.PNG 

 

Best regards,

Mabel

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (35,834)