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

@empty condition

Hi, when you use the @empty condition on a Create HTML table output, it will always be True even if the HTML table is empty.

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @JLam63,

 

The @empty function is used to check if an object, an array or a string is empty, if the Object, array or string is empty, the @empty function would return true. But the output the "Create HTML table" action returns is a table value, so we could not use the @empty function to check if the table value is empty.

 

If the output the "Create HTML table" action returns is empty, the @empty(null) expression would return false. If the output of the "Create HTML table" action returns is not empty, the @empty function would also return false.

 

I have made a test on my side and please take a try with the following flow's configuration:7.JPG

 

When the "Create HTML table" action return empty, the @empty function return false as below:8.JPG

When the "Create HTML table" action doesn't return empty, the @empty function also return false as below:

 9.JPG

 

More details about the empty function in flow, please check the following formula:

https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language#collection...

 

 

Best regards,

Kris 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-xida-msft
Community Support
Community Support

Hi @JLam63,

 

The @empty function is used to check if an object, an array or a string is empty, if the Object, array or string is empty, the @empty function would return true. But the output the "Create HTML table" action returns is a table value, so we could not use the @empty function to check if the table value is empty.

 

If the output the "Create HTML table" action returns is empty, the @empty(null) expression would return false. If the output of the "Create HTML table" action returns is not empty, the @empty function would also return false.

 

I have made a test on my side and please take a try with the following flow's configuration:7.JPG

 

When the "Create HTML table" action return empty, the @empty function return false as below:8.JPG

When the "Create HTML table" action doesn't return empty, the @empty function also return false as below:

 9.JPG

 

More details about the empty function in flow, please check the following formula:

https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language#collection...

 

 

Best regards,

Kris 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Users online (62,929)