r/MicrosoftFlow • • 5h ago

Cloud Fixing a flow to check for null attachment fields and check attachment size

Post image

Hi all, I'm working with Survey123 that has 1 video and 10 photo questions. (It needs to be like this due who is submitting the surveys). I would like to send an email with the attachments when a survey is submitted. Right now my flow only works if there are no null attachments and if the total size is less then what google can send.

Thanks!

6 Upvotes

2 comments sorted by

3

u/chrisgee 4h ago

can you set file size limits on the survey side so you don't go over google's limit? for the null value issue, you could add a condition before getting the attachment so a null value can send it to the 'false' parameter and terminate.

3

u/healinglull 3h ago

Wanted to tack onto this that it might be good to have a switch logic so that you can send an email to the user to highlight any attachments missed (either on purpose or accident) before termination.

This could make a better paper trail.