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

Get embedded attachment from outlook body?

Hi Every 🙂

I get order conformation in outlook mail body and not as attached under the subject. 

I am trying to get the attachment and save them in the sharepoint but no luck 🙂

 

Does anyone have an idea at how to do it? Any link?

This is how the body of the mail looks like.

 

Khan321_0-1663244136843.png

 

 

regards

Naji 

 

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

HI @Khan321,

 

It looks like it is indeed a table (although I am prepared to be corrected) however, you would need to inspect the html code and look for

 

<table> LOTS OF DATA & FORMATTING </table>

 

 

Essentially look for some recognisable text which is appearing in the table, then look for the start and end points.

 

If you find table, then follow the steps on this page

https://tomriha.com/parse-data-from-an-html-table-in-an-email-with-power-automate/

 

━━━━━━━━━━━━━━━━━━━━━━━━━

 

If I have answered your question, please mark your post as Solved.

 

Solved questions helps users in the future who may have the same issue or question quickly find a resolution via search.

 

If you liked my response, please consider giving it a thumbs up. Thank you!

 

View solution in original post

15 REPLIES 15
Redders
Continued Contributor
Continued Contributor

Hi @Khan321,

 

I think that you will need to provide a little more detail for someone to be able to help.

Can you provide an example of what the body of the email looks like?

@Redders  Thanks for message.

Sorry i should have given some more info already. 

This is how the body of the mail looks like :

Please let me know if you need further info. 

Khan321_0-1663243657827.png

 

 

Hi @Khan321,

 

I think you might have your work cut out for you on this one however, this may be a good place to start.

 

https://tomriha.com/parse-data-from-an-html-table-in-an-email-with-power-automate/

 

What it looks like you need to do is find the table within the body of the email, the link above should help you get that. It may however need some further work as the table isn't a normal looking table. 

 

Follow the steps and see how you get on 

 


━━━━━━━━━━━━━━━━━━━━━━━━━
If I have answered your question, please mark your post as Solved.
Solved questions helps users in the future who may have the same issue or question quickly find a resolution via search.
If you liked my response, please consider giving it a thumbs up. Thank you!

@Redders  Thanks for reply. 

I think i could not explain well again and sorry for that 🙂

 

It is an attachment which is in the email body and look likes pdf (not sure ) but in the body of the mai. It is not a table. 

i am sending another picture.  Let me know if it is not enough.

Khan321_0-1663324036607.png

 

 

 

Redders
Continued Contributor
Continued Contributor

Hi @Khan321,

 

If it is in the body of the email, you will need to understand what data is being provided. If it is a PDF or image, then you will see this in the body and you can look for a solution to obtain it from there. 

 

Set up a trigger "When a new email arrives" set the 'from' field to your own email address, now add a compose and add the dynamic content of body from the email.

 

Redders_2-1663325250395.png

 

Save it and click test manually, now resend the email to your email address.

 

The below is an example of what you will see when the test has completed

 

Redders_0-1663325061045.png

The output will show you exactly what is being provided in the body of the email.

 

This link https://tomriha.com/parse-data-from-an-html-table-in-an-email-with-power-automate/ shows how you extract the HTML table from the body however, it could be adapted for other things like images just by modifying the "table" element in this screenshot but you need to know what you are looking for first. 

Redders_3-1663325495137.png

 

I have assumed that the pdf is essentially HTML tables as I haven't seen an embedded pdf in the body of an email before but if it is, then you will find it in the outputs of your compose

 

I hope this helps

 


━━━━━━━━━━━━━━━━━━━━━━━━━
If I have answered your question, please mark your post as Solved.
Solved questions helps users in the future who may have the same issue or question quickly find a resolution via search.
If you liked my response, please consider giving it a thumbs up. Thank you!

 

 

@Redders  you were right 🙂 it is not pdf.

 

this is what it shows. 

 

should i do the same being showed in the link or modify some of it?

 

 

Khan321_0-1663331363425.png

 

Once again thanks for you patient with me 🙂

Redders
Continued Contributor
Continued Contributor

Hi @Khan321,

 

Lets find out what it is.

 

This bit does help if you know a little HTML however, I'm sure that you will learn on the way if you do not.

 

I would look all of the text to find what I was looking for however, lets use another website to view the output better.

 

Copy all of the text in the output and https://codebeautify.org/htmlviewer.

 

On this page, there is a section on the left hand side where you can paste in the copied text from your output. On the right hand side, you can see how the HTML should be displayed. This is what my output looked like

Redders_1-1663333515581.png

I have circled different parts of the output to demonstrate that you can identify different parts of the code to what you can see when the HTML is formatted. I know it doesn't show much on mine but if you paste in the html to this website, then you can inspect the results against the code, you should be able to identify what it is that you can see.

 

Once you have that, you can then start to look to see how you can extract what you need

 

━━━━━━━━━━━━━━━━━━━━━━━━━

 

If I have answered your question, please mark your post as Solved.

 

Solved questions helps users in the future who may have the same issue or question quickly find a resolution via search.

 

If you liked my response, please consider giving it a thumbs up. Thank you!

@Redders  thank you for your time and explaination. 

this is what it shows.  

How can i extract the data from it?

 

Khan321_0-1663337182792.png

 

HI @Khan321,

 

It looks like it is indeed a table (although I am prepared to be corrected) however, you would need to inspect the html code and look for

 

<table> LOTS OF DATA & FORMATTING </table>

 

 

Essentially look for some recognisable text which is appearing in the table, then look for the start and end points.

 

If you find table, then follow the steps on this page

https://tomriha.com/parse-data-from-an-html-table-in-an-email-with-power-automate/

 

━━━━━━━━━━━━━━━━━━━━━━━━━

 

If I have answered your question, please mark your post as Solved.

 

Solved questions helps users in the future who may have the same issue or question quickly find a resolution via search.

 

If you liked my response, please consider giving it a thumbs up. Thank you!

 

@Redders  Hi 🙂

Once again thanks for your help. 

It is table and when i try to follow the link i get some issue there.  

When i filter array and the outpot is following:

Khan321_2-1663581440684.png

 

Khan321_0-1663581005471.png

but when i use compose 2 try to get the table with split it gives only the (CSS) the background color of page. 

following:

Khan321_1-1663581184068.png

I am using the in compose 2:  split(first(body('Filter_array')),'</table>')[0]

 

Thank you for you time @Redders  🙂

BR,

Naji

 

Redders
Continued Contributor
Continued Contributor

Hi @Khan321,

 

I think that I am at the limit of my knowledge and I don't think I'm going to be able to help you further, hopefully someone else will be able to assist. At least you have got a few steps further. 

 

If no one else responds to this thread, try opening a new one with a title like "Extracting HTML table from email body", this then would allow people (who might be able to help) see the thread more easily. Also, try and show as much as possible i.e. adding screenshots of your flow so far and adding the output code (using the </>) negating any sensitive information

@Redders  Thank you so much 🙂  You are an amazing person. 

 

i will try to wait for a coulple  day otherwise i will create another thread with all the details you described. 

Once again thanks for your time and help 🙂

 

Redders
Continued Contributor
Continued Contributor

━━━━━━━━━━━━━━━━━━━━━━━━━

 

If I have answered your question, please mark your post as Solved.

 

Solved questions helps users in the future who may have the same issue or question quickly find a resolution via search.

 

If you liked my response, please consider giving it a thumbs up. Thank you!

@Redders 

Can i mark your reply as solution?

 

Redders
Continued Contributor
Continued Contributor

Hi @Khan321,

 

I think that I just added my signature to my last comment as a pointer for whether you liked my comments or if I provided you with a solution for either to be recognised as such.

 

I think the information that I provided to you helped you understand that the "attachment" was actually a HTML table rather than a file which existed within the body of the email. Was it a full solution for your issue, probably not, could it help you pose your question in a better way, probably. 

 

The key to getting the right sort of help in these forums is being able to summarise the issue concisely for the title of the post, providing the right level of detail  and asking the right questions within your post so that someone can help.

 

Here is a useful post that I read when first starting out, it helped me better understand

 

https://powerusers.microsoft.com/t5/Power-Automate-Community-Blog/How-to-write-a-good-forum-post/ba-...

━━━━━━━━━━━━━━━━━━━━━━━━━

 

If I have answered your question, please mark your post as Solved.

 

Solved questions helps users in the future who may have the same issue or question quickly find a resolution via search.

 

If you liked my response, please consider giving it a thumbs up. Thank you!

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (1,057)