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.
Hi Mira,
Good afternoon,
How can I add steps to check if there is an attachment? my challenge is vice verse; It sends an email even if there is no attachment?
This is my Flow, it works somehow, but I think it can be improved because it is still sending files if one of them is not started with SPIE, as I am canceling sending email after once is checked to prevent sending more than one email.
Thanks in advance.
@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.
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.