cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate IV
Advocate IV

Extract email address from a PDF

I have a PDF file and inside the PDF file there is an email address i want to take the email address from inside the file and use it to send the same file as an attachment to that email address. Its going to be used to have emails automatically sent out when the file is saved in a folder. all the PDFs are basically the same just the emails will be different from each one

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Extract email address from a PDF

Hi @chrisingh42188 ,

 

If you save the name the .pdf file with email address, please refer to screenshot below to create the flow:

1.png

The expression in the Compose 2 as below:

first(split(outputs('Compose'),'.pdf'))

Please let me know if your problem could be solved.

 

Best regards,

Alice       

 

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

View solution in original post

5 REPLIES 5
Highlighted
Super User
Super User

Re: Extract email address from a PDF

Hi @chrisingh42188 

 

There is nothing out of the box for flow to read the contents of PDF.

 

Please have a look at Docparser

 

https://docparser.com/blog/microsoft-flow-powerapps/

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered 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.

 

Thanks

 

 



Did I answer your question? Mark my post as a solution!

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


Proud to be a Flownaut!

Learn more from my blog
Highlighted
Advocate IV
Advocate IV

Re: Extract email address from a PDF

Well rather than doing that i tried to save the files name as the email that its supposed to go to but i ran in to the issue of ".pdf" showing up in the email address. is there any way to stop that from happening?

Highlighted
Community Support
Community Support

Re: Extract email address from a PDF

Hi @chrisingh42188 ,

 

If you save the name the .pdf file with email address, please refer to screenshot below to create the flow:

1.png

The expression in the Compose 2 as below:

first(split(outputs('Compose'),'.pdf'))

Please let me know if your problem could be solved.

 

Best regards,

Alice       

 

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

View solution in original post

Highlighted
Advocate IV
Advocate IV

Re: Extract email address from a PDF

i got it to work but i didnt do it that way i got them to save the pdf as the email its going to but i used the sharepoint trigger "when a file is created (properties only)" which allowed me to get the correct dynamic content

Highlighted
Community Support
Community Support

Re: Extract email address from a PDF

Hi @chrisingh42188 ,

 

You could also take a try with my solution and it is works.

If your problem has been solved, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

 

Best regards,

Alice       

 

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

Helpful resources

Announcements
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (6,983)