cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mikkele
Advocate I
Advocate I

Best way to extract data from email

We are generating certificate-related information from SharePoint servers and sending the information via email.

We then want to parse the content of the email and create a new list item in a SharePoint list.

We can generate the email from the servers in many ways (body, text file attachment, json etc.)

What would be the best way to create a Flow as easy as possible, that is able to parse the email content and create a list item in SharePoint?

5 REPLIES 5
Pstork1
Dual Super User III
Dual Super User III

Personally, I think JSON is your best bet.  Flow has actions that can be used to parse JSON and make the individual fields availabel to the Flow.  This would make it much easier to then save them in a list.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

"Dealing with JSON in Microsoft Flow is fun – if you’re a masochist."

https://spmaestro.com/handling-json-in-microsoft-flow/

Hi @mikkele ,

 

I agree with Pstork1 that if the content in the email body is JSON data, it is more convenient to use Flow to process the data.

You may need to use HTML to text to convert the email body to plain text, and then parse the output from the previous step using Parse JSON action.

Please take try and feel free let us know if you need further assistance.

 

Best Regards,

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

Thanks

 

I ended up generating the email attachment file in JSON format and parse it using Parse JSON action.

Only trick was that I had to "jasonify" the attachment using Fx Json ( )

It seems that you have found the proper workaround and solved your problem.

Great!

 

 

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

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,265)