cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
奔跑吧蜗牛c
Regular Visitor

How to save the current user information to the User and Group fields of List?

1.DefaultSelectedItems=Office365ユーザー.MyProfile()

2021-10-29_11h29_52.png

 

2.Automatically get the current user and click Save.

2021-10-29_11h33_45.png

3.Failed to save user information.

2021-10-29_11h35_16.png

 

QA:How do I save the current user to the User and Group fields in the list?

1 ACCEPTED SOLUTION

Accepted Solutions
StalinPonnusamy
Super User
Super User

Hi @奔跑吧蜗牛c 

 

Looks like you are using the Office365Users connector to display person.

 

Set the Items property of the Person Combo box to

Office365Users.SearchUser({searchTerm: ""})

 

Set the DefaultSelectedItems property to

Office365Users.MyProfile()

 

Set the Update property of Card to

{
    Claims: "i:0#.f|membership|" & AssignedToCombo.Selected.Mail,
    Department: "",
    DisplayName: AssignedToCombo.Selected.DisplayName,
    Email: AssignedToCombo.Selected.Mail,
    JobTitle: "",
    Picture: ""
}

 

Reference

StalinPonnusamy_0-1635478634875.png

 


Thanks,
Stalin - Learn To Illuminate

 

View solution in original post

2 REPLIES 2
StalinPonnusamy
Super User
Super User

Hi @奔跑吧蜗牛c 

 

Looks like you are using the Office365Users connector to display person.

 

Set the Items property of the Person Combo box to

Office365Users.SearchUser({searchTerm: ""})

 

Set the DefaultSelectedItems property to

Office365Users.MyProfile()

 

Set the Update property of Card to

{
    Claims: "i:0#.f|membership|" & AssignedToCombo.Selected.Mail,
    Department: "",
    DisplayName: AssignedToCombo.Selected.DisplayName,
    Email: AssignedToCombo.Selected.Mail,
    JobTitle: "",
    Picture: ""
}

 

Reference

StalinPonnusamy_0-1635478634875.png

 


Thanks,
Stalin - Learn To Illuminate

 

Thank you for your answer, the problem was solved.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,195)