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
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

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

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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