Update a record using anonymous window using a query and a DMLstatement
In Developer Console, Anonymous Window under Debug Tab -
Account account = [SELECT Id,Name, Description FROM Account WHERE id = '0015g00000oh8DOAAY'];
account.Name = account.Name + ' - VIP';
account.Name = account.Name + ' - VIP';
account.Description = 'VIP Account';
Update account;
Update account;
Comments
Post a Comment