• happy user
  • NEWBIE
  • 0 Points
  • Member since 2012

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

We have a rich text field storing photos in Case. We want to set up HTML email template to send alert to some salesforce.com users and non user when a case is created.  The rich text field is one of the fields included in the email template.  The result is the photo cannot be displayed in email if email recipient is not in salesforce.com.  Any solution to this?

We have two custom objects: Invitation and Invitation Card.  We have already selected list of companies to Invitation.  We want to have a trigger to create Invitation Card records after user updates the range of Invitation Card No. to in Invitation record.  Below is our trigger but we found the system creates two Invitation Card for each number.  Anyone can help me to fix it?  Thank you.

 

public list<Invitation_Card__c> card {get;set;}

    card = new list< Invitation_Card __c>();

   

    for(Invitation__c o: Trigger.new){

        if (o.Start_No__c != null &&  

             o.Start_No__c != System.Trigger.oldMap.get(o.Id).Start_No__c) {   

                  

        integer a = integer.valueof(o.Start_ No__c);

        integer b = integer.valueof(o.End_ No__c) + 1;

       

        for(integer i=a; i<b; i++){

           card.add(new Invitation_Card__c(

            Name = string.valueof(i),

            Date __c = date.Today(),

            Invitation__c=o.Id,

            Company__c = o.Company__c));

        }//end for

       

        }//end if

              

    }//end for

           

    insert card;

We have a rich text field storing photos in Case. We want to set up HTML email template to send alert to some salesforce.com users and non user when a case is created.  The rich text field is one of the fields included in the email template.  The result is the photo cannot be displayed in email if email recipient is not in salesforce.com.  Any solution to this?

We have two custom objects: Invitation and Invitation Card.  We have already selected list of companies to Invitation.  We want to have a trigger to create Invitation Card records after user updates the range of Invitation Card No. to in Invitation record.  Below is our trigger but we found the system creates two Invitation Card for each number.  Anyone can help me to fix it?  Thank you.

 

public list<Invitation_Card__c> card {get;set;}

    card = new list< Invitation_Card __c>();

   

    for(Invitation__c o: Trigger.new){

        if (o.Start_No__c != null &&  

             o.Start_No__c != System.Trigger.oldMap.get(o.Id).Start_No__c) {   

                  

        integer a = integer.valueof(o.Start_ No__c);

        integer b = integer.valueof(o.End_ No__c) + 1;

       

        for(integer i=a; i<b; i++){

           card.add(new Invitation_Card__c(

            Name = string.valueof(i),

            Date __c = date.Today(),

            Invitation__c=o.Id,

            Company__c = o.Company__c));

        }//end for

       

        }//end if

              

    }//end for

           

    insert card;