Aan de slagBegin gratis

Replace nested Conditions with a Switch

Theo's flow has grown a nested Condition for each possible Contracts Status: Active, Pending Review, Expired. The code is hard to read and the logic is getting tangled. A Switch is the right tool when you're routing on a single value across multiple cases.

Replace the nested Conditions with a Switch on the Contracts row's Status column. Add a Default case to catch any future status the flow doesn't yet handle. Silence on an unexpected value is the worst outcome.

If the flow designer looks broken (no triggers or actions appear in the search list, or you see an error mentioning invalid host name characters), click Restart session, then reload the exercise.

Deze oefening maakt deel uit van de cursus

Intermediate Power Automate

Bekijk cursus

Interactieve oefening met praktijkervaring

Zet theorie om in actie met een van onze interactieve oefeningen

Begin oefening