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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / ComboBox creates new r...
Power Apps
Answered

ComboBox creates new record rather than update

(0) ShareShare
ReportReport
Posted on by 25

Hi 

I am fairly new to Powerapps so any help will be much appreciated.

I have the form below which creates a new project and I use the combo box to select multiple users and store them in the text field multiusers.

However when I create a new record all the other fields save as one record and the users then save as another. 

Fali324_0-1710327016671.png

 

The code in the combo box is:

Office365Users.SearchUser({searchTerm:cmb_SavePeople.SearchText})
and the save button is:
SubmitForm(Form2);
Patch('Project Details',{MultiUsers:Concat(cmb_SavePeople.SelectedItems,DisplayName, " ; ")});
Reset(cmb_SavePeople)
 
How can I get it to create one record and not two.
 
Thanks
Categories:
I have the same question (0)
  • Verified answer
    BhaskarDhone Profile Picture
    1,392 Super User 2025 Season 2 on at

    You code is supposed to create two records. Try below one.

     

    SubmitForm(Form2);
    Patch(
     'Project Details',
     LookUp('Project Details', ID = Form2.LastSubmit.ID),
     {
     MultiUsers: Concat(cmb_SavePeople.SelectedItems, DisplayName, " ; ")
     }
    );
    Reset(cmb_SavePeople);
  • FA-18030952-0 Profile Picture
    25 on at

    Hi
    Thank you that works!!
    I also have an edit button which selects the record from the gallery and allows the user to edit the form. How can I get the combobox to list the current user names and the option to add or delete users and then save?

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard