• Erik Hamelink 2
  • NEWBIE
  • 50 Points
  • Member since 2018

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 5
    Replies
trigger BillingAddressMod on Account (after update) {
    public static boolean flag=true;
    If(flag==true) {
        account acc = [select id, BillingPostalCode from account where id in : trigger.new];
        List<contact> contList = [Select id, MailingPostalCode from Contact];
        Set <Id> setContact = new Set<id>();
        for(Contact cont: contList){
            setContact.add(cont.MailingPostalCode);
        }
        Map<id,Contact> mapAccount = [Select MailingPostalCode from Contact where AccountId in: acc];
        
        for (contact con : contList)
        {
            if(acc.BillingPostalCode != con.MailingPostalCode)
            {
                contList.add(con);
            }
            
        }
        If(contList.size()>=1)
        {
            acc.OutofZip__c = true;   
        }
        flag=false;
        
        update acc;
        
    }
}

 
trigger BillingAddressMod on Account (after update) {
    public static boolean flag=true;
    If(flag==true) {
        account acc = [select id, BillingPostalCode from account where id in : trigger.new];
        List<contact> contList = [Select id, MailingPostalCode from Contact];
        Set <Id> setContact = new Set<id>();
        for(Contact cont: contList){
            setContact.add(cont.MailingPostalCode);
        }
        Map<id,Contact> mapAccount = [Select MailingPostalCode from Contact where AccountId in: acc];
        
        for (contact con : contList)
        {
            if(acc.BillingPostalCode != con.MailingPostalCode)
            {
                contList.add(con);
            }
            
        }
        If(contList.size()>=1)
        {
            acc.OutofZip__c = true;   
        }
        flag=false;
        
        update acc;
        
    }
}

 
Is there anyway to change the Case tab title to the SUBJECT instead of the CASE NUMBER?

Please see below snapshot. 
User-added image

Your help will be highly appreciated.

Thanks in advance!
Prashant Raiyani