Showing results for 
Search instead for 
Did you mean: 

Construct an expression, then use in another step, possible?

Is it possible to construct an expression in a compose or variable step and then use the output as an expression in another step.





where body('Get_customers')?['value'] is the current customer being processed

and item()?['Column'] is the current column that I am interested in


Switch on an expression based onthe output of the compose step - possible?


Community Support Team
Community Support Team

Re: Construct an expression, then use in another step, possible?

Hi @JohnAageAnderse,


Could you please share a screenshot of the configuration of your flow?

Could you please explain more details about your requirement?


If you want to use use the output from Compose or variable as an expression in another step, you could refer to screenshot below to create the flow:



The expression in the Compose as below:


The flow would run successfully as below:



Best regards,



Re: Construct an expression, then use in another step, possible?

Thank you Alice for your suggestion, but it is not what I am asking Smiley Happy

Here is a small part of the flow, but the important one!

Flow.Construct expression.png

Will the above work or be possible in another way?

1) In the Process statement (a Compose step) I construct an expression. I am looping through a list of column names for which I need to process the value. In other words, the expression changes depending on the column name in the Column attribute.

2) In the Process Role (a Switch step) I wish to use the expression from 1)

Is that possible somehow?

Kind regards, John

Helpful resources


Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.


Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020


Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Microsoft Learn

Learn how to build the business apps that you need


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 99 members 4,237 guests
Please welcome our newest community members: