Skip to main content

Notifications

Power Apps - Power Apps Pro Dev & ISV
Suggested answer

Current user added in a person 'Field' of a sharepoint list

Posted on by 323
Hello all,
 
I'm creating a PowerApps application and, on the first page of it, the user have to create a new record based on a sharepoint list. One of the field of the sharepoint list is of typ 'Person or group'.
In my PowerApps, a create a new form with the default mode "FormMode.New"
 
What I'm trying to do is filling this field with the curent user .

According to what I already read, I should modify the property 'DefaultSelectedItems' of my ListBox with the following instructions :
 

{

 
Claims: "i:0#.f|membership|" & Lower(User().Email),
Department: "",
 
DisplayName: User().FullName,
 
Email: User().Email,
 
JobTitle: "",
 
Picture: ""
 
}

 
But by my, the property 'DefaultSelectedItems' is greyed out with the default value Parent.Default. Is there a way to add the curent user as default value in that field ?
Thanks to all for your help
  • Suggested answer
    jpespena Profile Picture
    jpespena 264 on at
    Current user added in a person 'Field' of a sharepoint list
    Hi,
     
    Right click on the DataCard and click Unlock to unlock an be able to edit the DefaultSelectedItems of the field.
     
     

    If my post helped resolve your issue, please click Accept as Solution—this helps others find it more easily and marks the item as closed. If you found this or my previous reply helpful, a Like would also be appreciated!

  • Suggested answer
    forstera Profile Picture
    forstera 323 on at
    Current user added in a person 'Field' of a sharepoint list
    Ok, sorry, I think I found it .. trying to make a new test ..

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,487

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,014

Leaderboard