Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Flow that auto populate column based on other columns values

(0) ShareShare
ReportReport
Posted on by 24

Hi, I have a two columns, each of them is a type of multiple choice. I want to build a flow, that will auto populate 3rd column based on the chosen combination in two other columns.

So far I constructed this:

cnapan_0-1643789467594.png

The compose expression is like that:

if(and(contains('Location''Tokio'),contains('Asset_x0020_type''Laptop')),'TOKIO-L-',if(and(contains('Location''Miami'),contains('Asset_x0020_type''Desktop')),'MIAMI-D',''))
 
The update item step has just Output of expression in desired column.
The flow though does not work. I think I miss some step in the schema. Can anybody help me?
  • tom_riha Profile Picture
    10,127 Most Valuable Professional on at
    Re: Flow that auto populate column based on other columns values

    Hello @cnapan ,

    as you have it now you're comparing two strings, but I think you want to compare values in columns. Therefore, you should use dynamic content in the expression. The expression should look similar to the example below:

    if(and(contains(triggerOutputs()?['body/Location'], 'Tokio'),contains(triggerOutputs()?['body/Asset_x0020_type'], 'Laptop')),'TOKIO-L-',if(and(contains(triggerOutputs()?['body/Location'], 'Miami'),contains(triggerOutputs()?['body/Asset_x0020_type'], 'Desktop')),'MIAMI-D',''))

    Note: it's just a guess from my side, you should use dynamic content when building the expression to get the right values.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1