You need to sign in to do that
Don't have an account?
Rick Rossi
Batch Class Question
Hi!
What would a batch class look like if I want to update any email field on the account, object, and lead to "In Development". I am having issues inserting the objects in an apex class, any help would be great.
Thanks!
What would a batch class look like if I want to update any email field on the account, object, and lead to "In Development". I am having issues inserting the objects in an apex class, any help would be great.
Thanks!
CustomObject__c myCustomObject = new CustomObject__c (
name = 'foobar', customField__c = 'zap'
);
// Insert it into the database
insert myCustomObject;
// View its content, including ID (null until it's inserted)
system.debug( myCustomObject );
// Display a URL which you can cut and paste into your browser to see the detail page for the inserted object
String urlForDetailPage = new PageReference('/' + myCustomObject.id).getUrl();
system.debug( urlForDetailPage );
(edited in firefox because Safari 3 /osx always breaks code insertions)
Hope helped! (https://2048cupcakes.io/)