Hi! I'm a bit stuck with some code, any help will be hugely appreciated 🙂
What I'm trying to achieve: First, check a selection of records, and send an email just to them.
Screen 1: Check boxes next to the main gallery records, on checking them it updates the data 'SendEmail' column for that record from "N" to "Y" to indicated that this person needs an email sending to them.
Screen 2: Gallery displays just the items with 'SendEmail' as "Y" (to allow the user to double check the distribution list)
On Screen 2, Send Email Button at the bottom which should:
First, Send the email to all in "Y" people <-- This part works
Then, patch all these records back to being "N" ready for next time to reset the Screen 2 gallery back to being empty <-- this is the part I'm struggling with.
Current button code - green parts work, red part doesn't:
ForAll(BrowseGallery1_5.AllItems,Office365Outlook.SendEmailV2(Email, DataCardValue27,DataCardValue35));Patch(BrowseGallery1_5.AllItems, {SendEmail: "N"});Navigate('Emails Successful')
Any help will be hugely appreciated 🙂
Thank you!