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 Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,934)