cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
powerapps890
Post Prodigy
Post Prodigy

Patch Checbox to Sharepoint List

This is my code for the vote button 

Navigate(Screen2,Fade);ForAll(BrowseGallery1.AllItems, Patch('CCB Voting', Defaults('CCB Voting'), {Title:Name, Answer: Checkbox3.Selected.Value,Name_:User().FullName, Date:Today(), Country:(First(Office365Users.SearchUser({searchTerm:User().Email}).Country).Country)}))

 

p.jpg

I want to patch 5 things to the sharepoint list. I am getting an error with the code above.

2 ACCEPTED SOLUTIONS

Accepted Solutions
KrishnaV
Super User III
Super User III

Hi @powerapps890 ,

 

try this:

Navigate(Screen2,Fade);ForAll(BrowseGallery1.AllItems, Patch('CCB Voting', Defaults('CCB Voting'), {Title:Name, Answer: Checkbox3.Value,Name_:User().FullName, Date:Today(), Country:(First(Office365Users.SearchUser({searchTerm:User().Email}).Country).Country)}))

if you still see the error, Share me that error msg.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
Krishna
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

 


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

View solution in original post

hi @powerapps890 ,

 

I have replied your other thread also:
https://powerusers.microsoft.com/t5/Building-Power-Apps/Limiting-checkbox-selection-to-10/m-p/619266...

 


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
Krishna
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

View solution in original post

5 REPLIES 5
KrishnaV
Super User III
Super User III

Hi @powerapps890 ,

 

try this:

Navigate(Screen2,Fade);ForAll(BrowseGallery1.AllItems, Patch('CCB Voting', Defaults('CCB Voting'), {Title:Name, Answer: Checkbox3.Value,Name_:User().FullName, Date:Today(), Country:(First(Office365Users.SearchUser({searchTerm:User().Email}).Country).Country)}))

if you still see the error, Share me that error msg.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
Krishna
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

 


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

View solution in original post

This works, but the problem is I only want the user to be able to check 10 boxes. Is there a way to do this? and only have those 10 records patched in? In the list it appears as true if clicked, but I don't want any of the false records in the Sharepoint list. @KrishnaV 

hi @powerapps890 ,

 

I have replied your other thread also:
https://powerusers.microsoft.com/t5/Building-Power-Apps/Limiting-checkbox-selection-to-10/m-p/619266...

 


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
Krishna
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

View solution in original post

Annotation 2020-07-08 152614.jpg

This is the error I am getting. @KrishnaV 

Hi @powerapps890 ,

 

I have replied to the other thread.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
Krishna
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

 


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

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 is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (30,095)