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

Condition value for 'data' or 'no data' for a "Attach documents" question

I have a Condition and the question is "Upload any supporting documents."  Is there a value that represents "Attachment uploaded" versus "No attachment uploaded?"  I tried NULL, but that didn't work.

 

Albertjp_0-1625581331958.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Dual Super User
Dual Super User

Hi @Albertjp,

 

You could use an expression with a length function as an alternative approach.

 

length(outputs('Get_response_details')?['body/r716b907b6dca449ab90a3e58506a5cef'])

is equal to 0

 

length_zero.png

 

Alternatively you could also use an empty function like below:

 

empty(outputs('Get_response_details')?['body/r716b907b6dca449ab90a3e58506a5cef'])

is equal to true

View solution in original post

1 REPLY 1
Expiscornovus
Dual Super User
Dual Super User

Hi @Albertjp,

 

You could use an expression with a length function as an alternative approach.

 

length(outputs('Get_response_details')?['body/r716b907b6dca449ab90a3e58506a5cef'])

is equal to 0

 

length_zero.png

 

Alternatively you could also use an empty function like below:

 

empty(outputs('Get_response_details')?['body/r716b907b6dca449ab90a3e58506a5cef'])

is equal to true

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

Users online (3,459)