cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted

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.

Example:

 

Compose:

body('Get_customers')?['value']?[item()?['Column']}

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?

 

2 REPLIES 2
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:

Capture.PNG

 

The expression in the Compose as below:

variables('MobileNumberArray')?[0]?['MobileNumber']

The flow would run successfully as below:

Capture.PNG

 

Best regards,

Alice

 

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

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

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

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,404)