• sanjay pega
  • NEWBIE
  • 10 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 5
    Replies
Hi Experts,
What will be the test class for following trigger?

trigger UpdateSADeclined on Task (before insert,before update) {

for(Task x: Trigger.new)

If (x.Declined_by__c!=null || x.Date_Time_Declined__c!=null || x.Declined_Reason__c!=null)
 { 
  
  x.SA_Declined__c=true;

else
 { x.SA_Declined__c=false;
 
 }
 }
 }


Please help.

Hello everybody,

     I would like to know how do you check the value of a checkbox (isDone__c), whether it is true or false.
     I have tried this: if(isDone__c)  and I am getting the following error: Condition expression must be of type Boolean.


Thanks for any help,
Vijay,

Hi,

 

I need to add a custom button on a detail field that create a pdf document using the custom object data

and send a mail using a mail template with the created pdf document in attachement.

 

Can anyone suggest me how to implement this.

 

Thanks,