web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow that auto populat...
Power Automate
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?
Categories:
I have the same question (0)
  • tom_riha Profile Picture
    10,187 Most Valuable Professional on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 248 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 204

#3
Haque Profile Picture

Haque 179

Last 30 days Overall leaderboard