cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cah2035
Helper III
Helper III

Compose action skipped due to Condition, but gives a null value that I do not want

Hello, 
I have a flow that is checking in a source if a Sample ID exists. For all that do not exist, I am composing a list. However, for the ones that do exist, the compose action gives them a null value. 

First up is the "Apply to All" action which goes through each Sample ID to check if it exists, when it does not, a compose is created to hold the Sample ID. Once it goes through all items, I have another Compose action that takes the Outputs from all the Compose actions within the Apply to All. 

 

Sample1.png

Sample2.png

 

However, for items where the Sample ID does not exist, I get the "ActionBranchingConditionNotSatisfied" message, which is expected since the condition is not running that Compose action. But it ends up giving me the "Null" value in the final compose action. How can I stop this from happening?

 

Sample3.png

1 ACCEPTED SOLUTION

Accepted Solutions
Jronash
Solution Supplier
Solution Supplier

If you want to construct your array using this method, you're not going to be able to avoid those null values.  Fortunately, it's easy to remove them with the Filter array action.  Just do something like this:

filter.png

View solution in original post

2 REPLIES 2
Jronash
Solution Supplier
Solution Supplier

If you want to construct your array using this method, you're not going to be able to avoid those null values.  Fortunately, it's easy to remove them with the Filter array action.  Just do something like this:

filter.png

@Jronash  That was perfect, thank you!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

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 Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (1,851)