• Anant Pandey 8
  • NEWBIE
  • 20 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 3
    Replies
Hi,

I have a requirement to to carete a button on Account detail page to generate PDF and send send email with PDF attachment includes field values of respective Account.

Please suggest me if this can be achived using lightening flow and how?

or Assist me with any other Solution

 
 
Please suggest me Test Class for below Trigger
 
trigger ContactToOpportunity on Contact (After insert) {

   List <Opportunity>  Opps = new list<Opportunity>();
    
    for (Contact c: trigger.new ){
        Opportunity o = new Opportunity (Name = c.FirstName,  
        CloseDate = system.today().addmonths(1),
        StageName = 'Prospecting'      
        );
     Opps.add(o);
        
            }
   
    Insert Opps;
        
}

 
I am writing a trigger on case to send an email when excalated field is checked.

Please help me with below code 
 
Trigger caseEscalated on Case (After insert, After Update) {
    
    list<case> caselist = [select id, IsEscalated from case where id in :trigger.new];
      
         
    for(case c:trigger.new){
                      
        if(c.IsEscalated == True){
            
      
        ??? ----- prepare and send an email----- ????  
                      
            
        }
        
    }
    
}

 
HI All,

I am writing a trigger as below to update Case due date automtically while insert.
I don't why this trigger is not working.
however when i remove caselst.add(c); this works fine. Please help

trigger DueDate on Case (before insert) {
    
    list<case>  caselst = new list <case>();
    
    for(Case c:trigger.new){
               
        if(c.Date_Due__c==Null){
            
            c.Date_Due__c = system.today() + 1;
                                          
          }
             
        caselst.add(c);
      }
      
   Insert caselst;
  
}
I am writing a trigger on case to send an email when excalated field is checked.

Please help me with below code 
 
Trigger caseEscalated on Case (After insert, After Update) {
    
    list<case> caselist = [select id, IsEscalated from case where id in :trigger.new];
      
         
    for(case c:trigger.new){
                      
        if(c.IsEscalated == True){
            
      
        ??? ----- prepare and send an email----- ????  
                      
            
        }
        
    }
    
}

 
HI All,

I am writing a trigger as below to update Case due date automtically while insert.
I don't why this trigger is not working.
however when i remove caselst.add(c); this works fine. Please help

trigger DueDate on Case (before insert) {
    
    list<case>  caselst = new list <case>();
    
    for(Case c:trigger.new){
               
        if(c.Date_Due__c==Null){
            
            c.Date_Due__c = system.today() + 1;
                                          
          }
             
        caselst.add(c);
      }
      
   Insert caselst;
  
}