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 Apps / Update field based on ...
Power Apps
Answered

Update field based on choice in SharePoint list

(0) ShareShare
ReportReport
Posted on by 8

Hi, I have a list with 10 choices (categories) in dropdown.  Based on the choice I would like to update the 'Assigned to' field to the person responsible for the category.  I would like the 'assigned to' field to not show on the form, just capture it for flow/email purposes.

 

Case:

If user selects Dog (category) assigned to = jane.doe@microsoft.com

 

Thanks

Categories:
  • CarlosFigueira Profile Picture
    Microsoft Employee on at

    You can update the card that is mapped to the 'Assigned To' field to have its 'Update' property reflect the logic that you want, and then hide it (so that the user can't change it). To do that, first you'll need to select the card and unlock it (in the Advanced view of the right-side pane), then set its Update property to something along the lines of:

    Switch(
     DataCardValue11.Selected.Value,
     "Dog",
     "jane.doe@microsoft.com",
     "Cat",
     "john.roe@microsoft.com",
     "Mouse",
     "joan.poe@microsoft.com")

    Where 'DataCardValue11' is the name of the dropdown control that has the categories. Once you have this ready, you can hide the card by setting its Visible property to false.

  • RusselThomas Profile Picture
    4,014 on at

    Hi hhg222,

    [Edit: Carlos too quick for me, but glad to see we think alike 🙂 Kudos to him]


    Assuming you're assigning the person responsible for the dropdown category manually, you can add the Assigned field and edit the card properties (not the control inside the card, the card itself) as follows;

     

    Update: property 

     Switch(Dropdown.Selected.Value, "dog", "jane.doe@microsoft.com", 
    "cat","someone.else@microsoft.com", "no-owner-default@microsoft.com")

    Visible: property

    false

    Hope this helps,

     

     

    RT

  • hhg222 Profile Picture
    8 on at

    This is exactly what I hope to accomplish - thanks for the help after many hours of googling!

     

    When I change the update field I receive the following error "The property expects Record values, but this rule produces incompatible Text values"  

     

    Any ideas?

  • Verified answer
    v-micsh-msft Profile Picture
    Microsoft Employee on at

    The message means you are working with a lookup field (record type).

    See this thread for more details.

    Then the switch should be modified as below:

     Switch(Dropdown.Selected.Value,
     "dog", 
     { Claims:"i:0#.f|membership|jane.doe@microsoft.com",
     Department:"",
     DisplayName:"Jane's User Name",
     Email:"jane.doe@microsoft.com",
     JobTitle:"",
     Picture:""},
    "cat",
     {Claims:"i:0#.f|membership|someone.else@microsoft.com",
     Department:"",
     DisplayName:"someone's User Name",
     Email:"someone.else@microsoft.com",
     JobTitle:"",
     Picture:""}, 
     {Claims:"i:0#.f|membership|no-owner-default@microsoft.com",
     Department:"",
     DisplayName:"No-owner-default's User Name",
     Email:"no-owner-default@microsoft.com",
     JobTitle:"",
     Picture:""}
    )
    

    Regards,

    Michael

  • hhg222 Profile Picture
    8 on at

    This is excellent thank you!

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard