Advertisement
Guest User

Untitled

a guest
May 20th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. //TODO #1 Declare a variable whose type is Course__c named newCourse
  2. // and initialize it to a newly constructed Course__c sObject,
  3. // assigning the field Name the value '[104] Introduction to Programming',
  4. // the field Course_Description__c the value 'Learn the basics of programming with OOP',
  5. // the field Status__c the value 'Active',
  6. // the field Duration__c the value 5.
  7. Course__c newCourse = new Course__c(Name = '[104] Introduction to Programming',
  8. Course_Description__c = 'Learn the basics of programming with OOP',
  9. Status__c = 'Active',
  10. Duration__c = 5);
  11. //TODO #2 Use the insert statement to insert newCourse into the database.
  12. insert newCourse;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement