cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
S_Tran
Helper III
Helper III

Plan B for after capturing attachment from emails flow failed.

I have created a flow for capturing email attachments & renaming those files to use specific filename then saving them in sharepoint.

When the email arrives it has multiple attachments. (1 xml, 2 pdf, and 1 htm file).

There is a pdf file with a filename format that includes an underscore, XXXXXXXXXX_XXXXXXXXXXXXXX.pdf (I wanted to use that filename format for all files). 

My goal is to save the xml file (which has to be renamed) and the pdf file that already has the underscore file format.

I used the set variable to capture that filename for renaming the xml.  

 

My current flow already achieved my current goal.  The problem is when the email arrives and it's missing that pdf file with the underscore (where I need to capture the variable), my flow fails and no attachments are created in sharepoint.  I want to edit this flow to save the xml using another filename format when that pdf file is missing & the variable cannot be set.  Please see my current screenshot of my flow.

Setting the Variable when there is the pdf file with underscoreSetting the Variable when there is the pdf file with underscoresaving the pdf that already has the underscore filename formatsaving the pdf that already has the underscore filename formatsaving the xml file with the set variable filenamesaving the xml file with the set variable filename

0 REPLIES 0

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,821)