cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jbravo
Level: Powered On

Extracting specific email attachment and adding it to a sharepoint list

Greetings! I've only recently discovered this great forum. I've been having issue with one of my flows.

 

The flow summary is:

1. When new email arrive

   - has attachment, include attachments

2. Create item (sharepoint)

   - it then turns into this:

image.png

 

 

My problem that it adds all the attachments, like Signature .img and when I only need the user added attachment (.pdf, .docx)

 

Once it creates the items (5+) on sharepoint, it triggers an approval process for all the attachments. As shown below:

image.png

 

Is there a way to only add a specific attachment?

 

 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support Team
Community Support Team

Re: Extracting specific email attachment and adding it to a sharepoint list

 

Hi @jbravo ,

 

Basically, the file carries the extension, and Attachment Name obtained in Flow also has an extension.

So we recommend using ends with to determine the file type and filter the attachments, which is practical.

 

In addition, it seems that you want to store the email attachment to the attachment of the item, please refer to the following configuration:

116.PNG

If you want all the attachments to be stored in an item, please refer to this configuration:

115.PNG

 

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.

View solution in original post

4 REPLIES 4
Super User
Super User

Re: Extracting specific email attachment and adding it to a sharepoint list

@jbravo 

You could use a condition to check the file extension - only take action on the file types which are of interest to you.  I am referencing Attachment Name in the condition.

NoImage.jpg

 

 

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

Scott
jbravo
Level: Powered On

Re: Extracting specific email attachment and adding it to a sharepoint list

Thank you for the prompt response!

 

The conditional does not trigger item creation in the SP list. This is the error:

image.png

@ScottShearer 

 

Curious, will this add the PDF/Docx to the SP list? or just the Name of the document?

I've tried renaming the doc.pdf , doc.docx in order to ensure that the extension is there. However, I do no think the average user will append it..

Does the conditonal only look at the name of the attachment or the entire file object?

 

Super User
Super User

Re: Extracting specific email attachment and adding it to a sharepoint list

@jbravo 

Is your goal to create a list item and add the attachment to the list item or do you want to create a document in a library?  Let me know and I'll create a solution for you.

 

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

Scott
Highlighted
Community Support Team
Community Support Team

Re: Extracting specific email attachment and adding it to a sharepoint list

 

Hi @jbravo ,

 

Basically, the file carries the extension, and Attachment Name obtained in Flow also has an extension.

So we recommend using ends with to determine the file type and filter the attachments, which is practical.

 

In addition, it seems that you want to store the email attachment to the attachment of the item, please refer to the following configuration:

116.PNG

If you want all the attachments to be stored in an item, please refer to this configuration:

115.PNG

 

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.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 461 members 6,766 guests
Please welcome our newest community members: