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

Email with attachment not sending when there isn't not an attachment

I have created a Form that has an upload question and it may or may not be filled out. The part of the flow that I am having issues with is I am trying to send an email with the upload question as an attachment. The email is only sending when there is an attachment, I want it to send even if there isn't an attachment. I am using the OneDrive "list files in folder", 'get file content' and 'create file content' connectors to add the attachment. 

2 REPLIES 2
Mira_Ghaly
Dual Super User
Dual Super User

@usethegreymatte

I guess because the email sending step is inside the apply to each for the attachments.

So I would check first if attachments exist or not, if exists then send email with attachments otherwise send normal email.

 

 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

@Mira_Ghaly Is there a way to attach the email from OneDrive outside of the 'Apply to each'? I can't directly specify the name of the file because its going to be different depending on what the attachment is from the Form.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (5,132)