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

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Save multiselect combo...
Power Apps
Unanswered

Save multiselect combobox value into the lookup column in dataverse

(2) ShareShare
ReportReport
Posted on by 20
I am using Appointments table in dataverse where i have created Account Name as the lookup column from the Accounts table. 
 
I am using NewForm in canvas app where Account Name is a  combobox which is getting populated from the Accounts table in dataverse
 
Items Property of Account Name (multiselect enabled)
Choices([@Appointments].'Account')
 
 
When i try to save multiple value using below Patch function, it throws error. It works fine when i save single value using the code ComboBox1_3.Selected.
 
May i know whats the issue here?
 
Patch code on Save
Patch(Appointments, Defaults(Appointments),{ 'Account': ComboBox1_3.SelectedItems})
 
I have the same question (0)
  • Vahid Ghafarpour Profile Picture
    674 Super User 2025 Season 2 on at
    Save multiselect combobox value into the lookup column in dataverse
    Because you’re trying to store multiple records into a single-valued lookup field, ComboBox1_3.SelectedItems returns a table (list of records).
  • Michael E. Gernaey Profile Picture
    52,972 Super User 2025 Season 2 on at
    Save multiselect combobox value into the lookup column in dataverse
     
    I want to point out, that you either way, (and using batch is possible but in your case you are NOT patching the formatted Task (appointment) you are simply trying to populate a single field (a Lookup of Account))
     
    With Batches you cannot do this aka you cannot patch multiple at the same time unless the schema etc matches perfectly and yours does not.
     
    Also note, that even if it did, you are creating a bunch of blank appointments with a single column populated, regardless of (and it does not) bulk worked this way or not.
     
     
  • Ram Prakash Profile Picture
    5,576 Super User 2025 Season 2 on at
    Save multiselect combobox value into the lookup column in dataverse
    Hi @Poweruser32490

    In appointment, we are having this regarding field as POLYMORPHIC Field, so please try to pass the values accordingly.
     
    Please mark as answer if my suggestion helps.
    Subscribe here for More Useful videos : https://www.youtube.com/@rampprakash3991
  • Poweruser32490 Profile Picture
    20 on at
    Save multiselect combobox value into the lookup column in dataverse
    Hi All,
     
    I don't have the option to allow multiselect in the lookup column in D365 unlike sharepoint. When i try to save multiple value using below Patch function, it throws error. It works fine when i save single value using the code ComboBox1_3.Selected instead of ComboBox1_3.SelectedItems
     
    Patch(Appointments, Defaults(Appointments),{ 'Account': ComboBox1_3.SelectedItems})
     
  • Suggested answer
    Michael E. Gernaey Profile Picture
    52,972 Super User 2025 Season 2 on at
    Save multiselect combobox value into the lookup column in dataverse
     
    As I clearly stated, that is not supported, that is the answer.
     

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard