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

Avoid Flow Fail when no Attachments

I created this flow (thanks to Lernen Tech https://youtu.be/UKuzX8zlnuE) for use with populating my sharepoint list with the responses to a flow, including any attachments.  

 

I'd like to add a step to keep it from failing when the Form is submitted with NO attachments.  Any suggestions?

 

 

iamcstevenson_0-1620853703295.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-duann-msft
Community Support
Community Support

Hi @iamcstevenson 

 

Thank you for posting.

 

According to your description, you would like to run flow successfully even though no file uploaded. If any misunderstanding, please kindly let me know.

 

As per my test, if no file uploaded, it will return null as below.

v-duann-msft_0-1620875850329.png

 

So what we need to do is adding a condition to check whether any value existing for that question.

v-duann-msft_1-1620875850332.png

 

After testing, the flow will terminate if no file uploaded and will go through ‘parse json’ branch if somebody do upload files.

v-duann-msft_2-1620875850338.png

 

Hope the content above may help you.

 

Best regards,

Anna

View solution in original post

2 REPLIES 2
v-duann-msft
Community Support
Community Support

Hi @iamcstevenson 

 

Thank you for posting.

 

According to your description, you would like to run flow successfully even though no file uploaded. If any misunderstanding, please kindly let me know.

 

As per my test, if no file uploaded, it will return null as below.

v-duann-msft_0-1620875850329.png

 

So what we need to do is adding a condition to check whether any value existing for that question.

v-duann-msft_1-1620875850332.png

 

After testing, the flow will terminate if no file uploaded and will go through ‘parse json’ branch if somebody do upload files.

v-duann-msft_2-1620875850338.png

 

Hope the content above may help you.

 

Best regards,

Anna

View solution in original post

Thank you Anna! Worked perfectly.  Appreciate the detail and screenshots.  Have a great day!

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Users online (12,670)