cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Set ComboBox Default to Current User and Save in Sharepoint List Person column.

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.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Dual Super User II
Dual Super User II

Hi @STKJ ,

 

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.

 

View solution in original post

Frequent Visitor

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)

View solution in original post

3 REPLIES 3
Dual Super User II
Dual Super User II

Hi @STKJ ,

 

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.

 

View solution in original post

Sorry, I should have mentioned I am not using a form.  Thanks.

Frequent Visitor

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)

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (53,174)