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 / Change field value bas...
Power Automate

Change field value based on another field value

(0) ShareShare
ReportReport
Posted on by 12

Hi,

 

I have a flow that will update a MS List based on answers provided by users in a MS Form, it was built using the templates we can find on Power Automate so there is no fancy coding here. 

Cuba_RJ_1-1694438279348.png

 

The problem is this: one of the fields in the form requires users to choose the role needed, when the user enter that info, I would like to create the record on MS List and assign it to the correct department.

 

I have 17 roles in 3 departments and assigning this automatically will make it easier to email the correct Department Leader.  

 

This field will be filled with the correct Leader: Maintenance, Marine, Production.

Cuba_RJ_0-1694438220457.png

 

I searched online and I noticed maybe variables would be useful or even working with arrays, but I have 0 idea on how to make that happening.

 

Can you help to make it?

 

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,960 Moderator on at

    Morning,

     

    Apologies I am not sure what you mean by Can you help make it. I'm not sure what the ask is exactly and if its in Power Automate or the Canvas Apps

     

    Can you explain the bottom more clearly.

    The problem is this: one of the fields in the form requires users to choose the role needed, when the user enter that info, I would like to create the record on MS List and assign it to the correct department.

     

    I have 17 roles in 3 departments and assigning this automatically will make it easier to email the correct Department Leader.  

     

    This field will be filled with the correct Leader: Maintenance, Marine, Production.

    FLMike_1-1694447768110.png

     

    Ok, so they select a role. But are you saying they aren't selecting a department and you want to figure out based on the role, which department to send it too?

     

    How are you passing the data to the flow? If what I asked is correct, then I would pass the department email to the flow. To figure out which one to do, in the app:

    Note: understand I am making simple assumptions, versus designing a full solution here.

    1. You have limited roles

    2. You can simply create a Collection that looks like this, in the App.OnStart of the app. You can use a table or other configuration way to do it, this is the simple way to demonstrate what I think you are asking for.

     

    ClearCollect(RoleDepartmentMappingCollection,

    { role: "Team Leader", department: "Production", departmentEmail: "Production@blah.com" },

    { role: "Team Leader 1", department: "Marine", departmentEmail: "Marine@blah.com"},

    { role: "Team Leader 2", department: "Production", departmentEmail: "Production@blah.com" },

    { role: "Team Leader 3", department: "Maintenance", departmentEmail: "Maintenance@blah.com" },

    { role: "Team Leader 4", department: "Production", departmentEmail: "Production@blah.com" }

    );

     

    3. I don.t know how you fill the roles dropdown but with this collection you set it to this

    Items property = RoleDepartmentMappingCollection

    In the Drop down box properties, set the Value = role

     

    FLMike_2-1694448451575.png

     

    When you go to submit the data to the flow, getting the email is super easy, you do it by typing this

    Dropdown1.Selected.departmentEmail

    Here is a text label I added to my screen to show you when I selected Team Leader as the role it populated the email address automatically in the label

    FLMike_3-1694448567349.png

     

    Now pass the email to your flow and in your flow you would have an expression for the CC and put the value of wherever you passed it into the flow.


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Cuba_RJ Profile Picture
    12 on at

    Hi. Is it possible to make it?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard