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 Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (1,773)