cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Fantoma25
Frequent Visitor

No attachment in my Power Automate Flow

Hi All,

 

I have created a Power Automate flow with the trigger (when a file is created property only) that should send an email with the attachments, the flow is running except I have no attachment in the file and I don't have the attachment(s), I don't see where the problem is, if you can help me

 

power automate 1.jpgpower automate 2.jpgPower automate 3.jpg

12 REPLIES 12
ekarim2020
Community Champion
Community Champion

As you are dealing with a single file triggering the flow, see if the following flow with three steps will be suited to your needs:

2021-11-14_12-33-04.png

2021-11-14_12-33-29.png

 


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

Fantoma25
Frequent Visitor

Hi Ellis,

 

Thank you for your answer, I have created this flow to deal with several files,

 

if you can help me,

 

Regards

Hi Ellis,

 

Thank you for your answer, I have created this flow to deal with several files,

 

if you can help me,

 

Regards

Can you share screenshots of the flow so I can understand the context and any error messages.

As far as I understand:

  • the trigger is when a file is created in a document library,
  • then based on some condition you are getting a number of documents files (Get Files) from another document Library?
  • these documents are sent as an email attachment
  • the attachments are received but they have no content - i.e. they are empty.


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

Hi Ellis,

 

See below screenshots below, tell if it what you need

1)pic 1.jpg

2)pic 2.jpg

3)pic 3.jpg

4)pic 4.jpg

5)pic 5.jpg

6)pic 6.jpg

7)pic 7.jpg

😎pic 8.jpg

9)pic 9.jpg

Thanks for the images from the flow. That was really helpful

 

(1) I am trying to understand what needs to be done in the flow:

  1. Trigger: When a file is created in a document library
  2. If the filename from the trigger action starts with 'INFORM.' then email the file as an attachment

(2) Is this understanding correct? If so, the flow can be created as mentioned before (see below). Note the flow is only triggered for each new file that is added to the document library - so the email will only contain ONE attachment file:

2021-11-17_09-20-43.png

We can later add a condition later to check if the filename starts with 'INFORM.' This can either be a trigger condition or a condition action. Will the above type of flow suit your need? Are you able to create a simplified flow like above and re-test

 

(3) Can you also send screenshots of the runtime. For example:

2021-11-17_09-22-34.png

Ellis

Hi Ellis,

 

the flow failed, below details :

 

issue 1.jpgissue 2.jpgissue 3.jpgissue 4.jpg

 

Fantoma25_0-1637220393552.png

Regards

Thanks for the screen shots.

I noticed that then I ran my test flow,  the Get file content action has the spaces and slashes in the url are encoded. In your action they are not encoded:

2021-11-18_07-49-52.png

Both actions should work. However,  in your flow can you replace the Get file content action with Get file content using path as below and re-test:

2021-11-18_08-01-15.png

Remember to update the email attachment details:

2021-11-18_08-03-10.png

 


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

Hi,

Now is working, what I would like now it is to apply a each statement as I can receive several file with the name starting by "INFORM."

Could you remind me what the original flow was trying to achieve.  This is what I understand:

 

Untitled Diagram.drawio2.png

 


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

Hi Ellis,

 

This is the flow, in this folder I can have 1 or more file with the name starting with : "INFORM."

Regards

Based on our previous discussions I think this is flow that will trigger when a new file is created, check if the file name begins with INFORM (the check is not case sensitive). If the file name begins with 'INFORM' email the file. As the trigger will operates on a single file being created we don't need handle multiple files in the flow:

2021-11-25_21-07-35.png

2021-11-25_21-07-58.png

 


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

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,256)