• hello_im_here
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies

I simply want to update a date field in a CustomObj__c from Standard Contract Obj upon Save of the Standard Contract Obj

 

Example:

When the "PTO Date" is updated & Saved on the Contract obj - that updated Date should auto-fill into the Service_Start_Date field on the

Service Contract custom_Obj__c

 

This should be a simple trigger however, I'm a bit snagged on it - Help Please :) -  Thx in Advance !!

 

 

 

 

Hi

I wonder if anyone can help me to advise on the test method  I should be using to test the following apex class. I am quite new to writing the test methods into the apex classes I have created and is at a loss at to how to solve for a public list query as below;

Any pointers will be highly appreciated.

Thanks and Best Regards

SL

 

public List<Contact> getMyContacts() {
return [SELECT Id, Name, Account.Name FROM Contact
];
}
  • April 29, 2009
  • Like
  • 0