cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Gallery control button onselect saved the logged in user name to SharePoint list

Previously I asked to save the logged in user name to SharePoint List multiuser field, where List Title column value is "A" on the PowerApps form button click. I have sucessfully add and delete my logged in user name to SharePoint multiuser fields on the button click.  First of all thank you soo much to  

ClearCollect(DemoColl1,Filter(,ID=).);

Patch(DemoColl1,Defaults(DemoColl1),{Claims:"i:0#.f|membership|"&Lower(User().Email),DisplayName:User().FullName});Patch(,Filter(,ID=),{:DemoColl1})

I have added the above rule on the "Vote" button "Onselect" but showing error. Give me some Idea please.

Best Regards,

Padmini.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

ClearCollect(DemoColl1,Filter(,ID=).);

Patch(DemoColl1,Defaults(DemoColl1),{Claims:"i:0#.f|membership|"&Lower(User().Email),DisplayName:User().FullName});Patch(,Filter(,ID=),{Smiley Very HappyemoColl1})

 

I have changed the rule to 

ClearCollect(DemoColl1,LookUp('CourseInformation',Title=Gallery3_1.Selected.Title).UserName);
Patch(DemoColl1,Defaults(DemoColl1),{Claims:"i:0#.f|membership|"&Lower(User().Email),DisplayName:User().FullName});Patch('CourseInformation',LookUp('CourseInformation',Title=Gallery3_1.Selected.Title),{UserName:DemoColl1})

It is working fine.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

ClearCollect(DemoColl1,Filter(,ID=).);

Patch(DemoColl1,Defaults(DemoColl1),{Claims:"i:0#.f|membership|"&Lower(User().Email),DisplayName:User().FullName});Patch(,Filter(,ID=),{Smiley Very HappyemoColl1})

 

I have changed the rule to 

ClearCollect(DemoColl1,LookUp('CourseInformation',Title=Gallery3_1.Selected.Title).UserName);
Patch(DemoColl1,Defaults(DemoColl1),{Claims:"i:0#.f|membership|"&Lower(User().Email),DisplayName:User().FullName});Patch('CourseInformation',LookUp('CourseInformation',Title=Gallery3_1.Selected.Title),{UserName:DemoColl1})

It is working fine.

View solution in original post

Hi @Anonymous ,

 

Glad to know that you have solved issue already and thanks for sharing the resolution here so others might benefit in the future.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,182)