Sample anonymous ap...
 
Notifications
Clear all

[Solved] Sample anonymous apex code to update a record

2 Posts
1 Users
0 Likes
382 Views
Posts: 205
 CWL
Admin
Issue starter
(@cwl)
Member
Joined: 11 years ago

Sample anonymous apex code to update a simple record for testing.

Issue Tags
1 Reply
Posts: 205
 CWL
Admin
Issue starter
(@cwl)
Member
Joined: 11 years ago

Example:

SBQQ__QuoteLine__c myQL = [Select Id, Tier1Multiplier__c FROM SBQQ__QuoteLine__c WHERE Id = 'a1N9H0000001m97UAA'];
myQL.Tier1Multiplier__c = 10;
update myQL;
Reply
Share: