I have a Sharepoint List with a Person column that accepts multiple people. In my PowerApp I have a Combobox tied to this column that also accepts multiple people. I have not been able to figure out how to set the default for the Combobox to the current user for a new record. Any help with this would be appreciated. Thanks.
After following the advise of francoisb1, it still was not showing the default value but it did get rid of the error. For it to finally show the default value I had to add "ThisItem.ColumnName" to the DefaultSelectedItems" property. The following is what I have set for it to show the default value in the Combo Box:
Hi
Thank you for the solution.
My2 cents :
I first had a issue when copy/paste it but this is because I didn't have a multi-value Combobox.
It's obvious but for a single value Combobox, you need to remove the Table part :
{DisplayName:User().FullName,
Claims:"i:0#.f|membership|" & User().Email}
Even though I am not using "Forms", I was able to use the red code below from your suggestion. Thanks!
If(lvarStatus="New",
Table({DisplayName:User().FullName,
Claims:"i:0#.f|membership|" & User().Email}),
RFQAGallery.Selected.SendEmails)
Sorry, I should have mentioned I am not using a form. Thanks.
Hi @Anonymous ,
Set the default property of the data card to
If(FormName.Mode= FormMode.New ,Table({
DisplayName: User().FullName,
Claims: "i:0#.f|membership|" & User().Email
}),ThisItem.PPFieldName)
where FormName = name of your form
PPFieldName = column name in SP
--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
mmbr1606
275
Super User 2025 Season 1