cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Anonymous
Not applicable

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

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
Highlighted
Anonymous
Not applicable

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

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

Highlighted
Community Support
Community Support

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

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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,304)