hi @KrishR
Let me first explain what the code I shared does.
When you use a ForAll it is giving you a loop of records (because the data in a gallery is records).
To Patch a record, you have to tell the Patch statement, which Record/Row to update.
When you are looping the gallery, ThisRecord is the pointer to that record.
So there is an issue possibly with what you filed in for the rest of the stuff, so if you can please share your code (after I gave it to you).
Then we can chat some more about whats wrong. Also, could you please run it, and when you get the error, can you stop the app and show me where you are hovering and take a screenshot.
Happy to help get you working
If you like my answer, I would really appreciate if you please Mark it as Resolved, and give it a thumbs up, so it can help others
Cheers
Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey