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
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (3,301)