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 / Default selected items...
Power Apps
Suggested Answer

Default selected items shows but not getting saved

(3) ShareShare
ReportReport
Posted on by 160
I am using below code to set default selected items in combo box. The issue is while submitting the default selected value doesn't gets saved in backend. May i know why?
 
In the configuration list, User column is a single select People Picker column
 
ComboBox Default Selected Items
If(
    (ComboBox5_2.Selected.Name = "Test1" || ComboBox5_2.Selected.Name = "Test2" || ComboBox5_2.Selected.Name = "Test3") && ("UAT" in ComboBox3_2.Selected.Name && ComboBox3_2.Selected.Name <> "HR"),
    {
        Value: LookUp(
            'Configuration List',
            Title = "HR Admin",
            User.DisplayName
        )
    },
    (ComboBox5_2.Selected.Name = "Test1" || ComboBox5_2.Selected.Name = "Test2" || ComboBox5_2.Selected.Name = "Test3") && "Prod" in ComboBox3_2.Selected.Name,
    {
        Value: LookUp(
            'Configuration List',
            Title = "Accounts Admin",
            User.DisplayName
        )
    },
    Parent.Default
)
 
  • Suggested answer
    MS.Ragavendar Profile Picture
    7,792 Super User 2026 Season 2 on at
     

    The most likely issue is that your DefaultSelectedItems is returning a record with only a Value property, For a Person column, the Combo Box expects a full person record (Claims, DisplayName, Email, etc.), not a custom record containing only Value.

    If(
        (
            ComboBox5_2.Selected.Name = "Test1" ||
            ComboBox5_2.Selected.Name = "Test2" ||
            ComboBox5_2.Selected.Name = "Test3"
        ) &&
        (
            "UAT" in ComboBox3_2.Selected.Name &&
            ComboBox3_2.Selected.Name <> "HR"
        ),
     
        [
            LookUp(
                'Configuration List',
                Title = "HR Admin"
            ).User
        ],
     
        (
            ComboBox5_2.Selected.Name = "Test1" ||
            ComboBox5_2.Selected.Name = "Test2" ||
            ComboBox5_2.Selected.Name = "Test3"
        ) &&
        (
            "Prod" in ComboBox3_2.Selected.Name
        ),
     
        [
            LookUp(
                'Configuration List',
                Title = "Accounts Admin"
            ).User
        ],
     
        Parent.Default
    )
     
    ✅If this helped, please Accept as Solution to help others ❤️ A Like is appreciated 🏷️ Tag @MS.Ragavendar for follow-ups.
     
  • Suggested answer
    Haque Profile Picture
    4,221 Super User 2026 Season 2 on at
     
    Agreed with  Ragavendar, The DefaultSelectedItems formula for the People Picker combo box --> the value you provide must be a table containing the full user record (Name, Phone, Address for example). Please note its not a record with a single Value property or just a string!
     
    In the formula, you have:
    
    {
        Value: LookUp(
            'Configuration List',
            Title = "HR Admin",
            User.DisplayName
        )
    }
    
    This creates a record with a Value property set to a string (the DisplayName), but the combo box expects a record with the full user object, including properties like Claims, DisplayName, Email, etc.
     
    Return the full user record from your lookup, not just the DisplayName.
    For example:
     
    LookUp(
        'Configuration List',
        Title = "HR Admin"
    ).User
    
    OR
    
     [
     LookUp(
         'Configuration List',
         Title = "HR Admin"
       ).User
     ]
    This will return (the above code) the full user record stored in the User column.
     
     
    For better clarity the below code wraps the result in a single-item table for DefaultSelectedItems:
    [ LookUp(
        'Configuration List',
        Title = "HR Admin"
    ).User ]
    
     
    You can apply this in all the places where needed.
     
    A similar thread is here with the same kind of problem - addressed.
     

    I am sure some clues I tried to give. If these clues help to resolve the issue brought you by here, please don't forget to check the box Does this answer your question? At the same time, I am pretty sure you have liked the response!
  • Poweruser32490 Profile Picture
    160 on at
    Hi
     
    If i use above code it shows [object][object] instead of displayname
     
    Items Property
    Choices([@'DS'].Admin)
     
  • Suggested answer
    11manish Profile Picture
    4,676 Super User 2026 Season 2 on at
    Your LookUp() logic is fine; the problem is the record being returned.

    The key correction is:

    Don't return {Value: User.DisplayName}. Return the actual Person record from the ComboBox's Items source, preferably matched using the user's Email. Then make sure the DataCard Update property is ComboBox5_2.Selected.

    That will make the value both display correctly and persist to the SharePoint backend.
  • Suggested answer
    Henil Profile Picture
    56 on at
     
    Since the User column in your Configuration List is already a single-select People Picker, I would return the full User record instead of only User.DisplayName.
     
    Your current formula is creating a record like {Value: "User Name"}, which may display correctly in the ComboBox but may not match the People Picker record structure when the form is submitted.
     
    You can also simplify your formula a little bit. Here is below optimized code:
    If(
        ComboBox5_2.Selected.Name in ["Test1", "Test2", "Test3"] &&
        "UAT" in ComboBox3_2.Selected.Name &&
        ComboBox3_2.Selected.Name <> "HR",
        [
            LookUp(
                'Configuration List',
                Title = "HR Admin",
                User
            )
        ],
        ComboBox5_2.Selected.Name in ["Test1", "Test2", "Test3"] &&
        "Prod" in ComboBox3_2.Selected.Name,
        [
            LookUp(
                'Configuration List',
                Title = "Accounts Admin",
                User
            )
        ],
        Parent.Default
    )
    Also check the Update property of the People Picker DataCard. Since it is a single-select People Picker, it should normally be:
    YourComboBoxName.Selected

    So the key point is: use the full People Picker record from the User column, not just the Display Name.

    This should also make the formula cleaner and easier to maintain.

    ✅ If this solves your issue, please Accept as Solution so others facing the same problem can find it more easily. A Like is always appreciated if this helped point you in the right direction!

  • Suggested answer
    Haque Profile Picture
    4,221 Super User 2026 Season 2 on at
     
    For the issue: 
    Items Property
    Choices([@'DS'].Admin)
    Plese let me know:
    If you set the CombBox's DisplayFields property to show the user-friend field, like DisplayName
    DisplayFields = ["DisplayName"]
    
     
    Setting the ComboBox's SearchFields property similaryly, 
    SearchFields = ["DisplayName"]
    Get the same issue?
     

    I am sure some clues I tried to give. If these clues help to resolve the issue brought you by here, please don't forget to check the box Does this answer your question? At the same time, I am pretty sure you have liked the response!
  • Suggested answer
    MS.Ragavendar Profile Picture
    7,792 Super User 2026 Season 2 on at
     
    These are the common setting which we used to apply  for the people picker with combo-box
     
    Items = Choices([@'DS'].Admin)
     
    DisplayFields = ["DisplayName"]
     
    SearchFields = ["DisplayName"]
     
    DefaultSelectedItems = [LookUp('Configuration List', Title="HR Admin").User]
     
    With respect to the object issue, add one sample label control and provide this formula
     
    JSON(
        First(
            Choices([@'DS'].Admin)
        )
    )
     
    O/P should be like this
     
    {
      "Claims": "...",
      "DisplayName": "Poweruser 32490",
      "Email": "Poweruser32490@powerplatformcommunity.com"
    }
     
    ✅If this helped, please Accept as Solution to help others ❤️ A Like is appreciated 🏷️ Tag @MS.Ragavendar for follow-ups.
  • Suggested answer
    Valantis Profile Picture
    7,415 Super User 2026 Season 2 on at
     
    Add a label with this to see the exact shape your ComboBox Items expects:
    JSON(First(Choices([@'DS'].Admin)))
     
    Then add a second label with this to see what LookUp is actually returning:
    JSON(LookUp('Configuration List', Title="HR Admin").User)
     
    Compare the two field by field, including @odata.type. SharePoint Person records need @odata.type: "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser" plus Claims, DisplayName, Email, Department, JobTitle, Picture. Since Configuration List and DS are different lists, their User columns can both be valid Person fields while still returning different field sets, which is what keeps producing [object][object] even after switching to the full .User record.
     
    If the two JSON outputs don't match field for field, build the DefaultSelectedItems record manually using the exact fields from the Items side instead of passing the Configuration List's .User directly.
     
      Best regards,

    Valantis  
     
    ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.

    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).

    🏷️ For follow-ups  @Valantis.

    📝 https://valantisond365.com/ 💼 LinkedIn   ▶️ YouTube
  • SanmeshG Profile Picture
    1,951 Moderator on at
     
    The person/user type of column expects the data in the following format, 
     
    {
               '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
               Claims: "i:0#.f|membership|sanmeshghongade@company.com",
               Department: "",
               DisplayName: "Sanmesh Ghongade",
               Email: "sanmeshghongade@company.com",
               JobTitle: "",
               Picture: ""
     }
     
    So , write the formula as , 
     
    If(
        (ComboBox5_2.Selected.Name = "Test1" || ComboBox5_2.Selected.Name = "Test2" || ComboBox5_2.Selected.Name = "Test3") && ("UAT" in ComboBox3_2.Selected.Name && ComboBox3_2.Selected.Name <> "HR"),
        LookUp(
                'Configuration List',
                Title = "HR Admin"
            ).User
        ,
        (ComboBox5_2.Selected.Name = "Test1" || ComboBox5_2.Selected.Name = "Test2" || ComboBox5_2.Selected.Name = "Test3") && "Prod" in ComboBox3_2.Selected.Name,
        LookUp(
                'Configuration List',
                Title = "Accounts Admin"
            ).User
        ,
        Parent.Default
    )
    Ensure the Update formula of the datacard is returning all the properties for the selected user.
     
     
     
    Hope this helps!
     
    If this answers your question. Please do mark this as an answer.
     
    Thanks,
    Sanmesh
     
     
  • Suggested answer
    BilalDev_01 Profile Picture
    115 on at

    I think the issue is that DefaultSelectedItems is returning a new record containing only Value, rather than the actual Person record from the SharePoint People column.

    In your formula, you're doing:

    {
        Value: LookUp(
            'Configuration List',
            Title = "HR Admin",
            User.DisplayName
        )
    }
    

    This can make the person appear correctly in the ComboBox, but the record isn't necessarily the same type that the People column expects when the form is submitted.

    I would try returning the actual User record instead, for example:

    LookUp(
        'Configuration List',
        Title = "HR Admin"
    ).User
    

    And similarly for Accounts Admin:

    LookUp(
        'Configuration List',
        Title = "Accounts Admin"
    ).User
    

    So the important part is that DefaultSelectedItems and the ComboBox Items should return compatible Person records, not just the person's display name.

    If this is inside an Edit Form, also check the DataCard's Update property. Normally it should be something like:

    ComboBox5_2.Selected
    

    or, if multiple selection is enabled:

    ComboBox5_2.SelectedItems
    

    depending on whether the SharePoint People column is single or multi-select.

    The fact that the default value is displayed but isn't saved strongly suggests a record-type mismatch between the ComboBox and the People column.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard