• Nik's
  • NEWBIE
  • 0 Points
  • Member since 2011

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

There are two rows on dashboard ... but when i place this reports on Home page .. it shows only one row ..

 

Thank's and Regards..

  • February 22, 2011
  • Like
  • 0

I am wrting the test method for trigger OnLeadConvert . How can i convert "Lead" in Test Method ?

  • February 19, 2011
  • Like
  • 0

I am wrting the test method for trigger OnLeadConvert . How can i convert "Lead" in Test Method ?

  • February 19, 2011
  • Like
  • 0

I'm new to apex and i have somehow managed to create a trigger in sandbox. It works fine.

The only issue is when i try to inbound change to production. Trigger deployment fails and covers only 0% of code.

 

I know the reason is i haven't created any test class for the trigger.

I don't know how to create one.

Please help.

 

following is my trigger.

 

trigger changeowner on Case (before insert,before update) {
    for(Case c : Trigger.new) {
        if (c.Status == 'Closed to Case Owner' ) {
            String createId = c.CreatedById;
            c.OwnerId = createId.subString(0, 15);
        }
    }
}

 

  • February 18, 2011
  • Like
  • 0