function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Akshay JuwaAkshay Juwa 

Need to query to get records, iterate the records adn update the url for each of the records!!

Hey everybody, I'm new to salesforce and I need help with creating this apex class with a method to gather all records based on brand, email before a certain date.

From what I know I need to query to get all the records first then iterate all the records and then update the url in each record.
My company has opt-out-preference field which generates a url for the new customer however for the older customers the opt-out-preference doesn't generate the url. So they'd like to have this working for the old customers. So my plan was to build an Apex class to do such