You need to sign in to do that
Don't have an account?
kryan0618
Update whole object after creation of a new trigger
Hi,
I have just created a new trigger to change a field in the Lead object using an AfterInsertUpdate. However, I would now like to update the whole object so all records have a value. How do I go about doing this?
Thanks in advance!
You have two options:-
1) Export all the records & run update job using data loader. No need to export all the columns just export Id and any other text/non required field.
2) If no. of records are less then run the following query in your console :
List<Lead> myList = [select id, column1 from lead ]; //this will fetch all records
Update myList;
All Answers
You have two options:-
1) Export all the records & run update job using data loader. No need to export all the columns just export Id and any other text/non required field.
2) If no. of records are less then run the following query in your console :
List<Lead> myList = [select id, column1 from lead ]; //this will fetch all records
Update myList;
Thanks for the suggestions! Updating as I write this!