• Balajee S 10
  • NEWBIE
  • 29 Points
  • Member since 2016

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

I have a currency field on my object with name Price__c i want to populate it from the field (ParentPrice__c ) of parent (Parent__c) 

how can i achieve it in trigger,
thanks for suggestion
How to remove domain name in salesforce?
Hello,

I have a currency field on my object with name Price__c i want to populate it from the field (ParentPrice__c ) of parent (Parent__c) 

how can i achieve it in trigger,
thanks for suggestion
Hello Everyone,

i need to copy the old values(Look up field into another field ).
Here whenever i save the record its getting the new id value in another field.
I need to excute this part of code whenver this feilds changes QCC_DSP__c/QAM_DSP__c
Suppose if the field changes happens on any other field is part of code should not execute.


 public void onManagerUpdate(List<Contact> contactList) {
     set<Id> CntIds= new Set<Id>();
     for (Contact Mancontacts : contactList){
        if (Mancontacts.QCC_DSP__c != null || Mancontacts.QAM_DSP__c!=null) 
        {
            Mancontacts.Manager_Login__c = Mancontacts.QCC_DSP__c;
            Mancontacts.Manager_Login__c = Mancontacts.QAM_DSP__c;
            Mancontacts.QAM_DSP_End_Date__c=system.today();
            
        }
      }
       //update ManagerUpdate;
  }

Thanks for all the help.

Regards,
Jyo
Hello,

I have a currency field on my object with name Price__c i want to populate it from the field (ParentPrice__c ) of parent (Parent__c) 

how can i achieve it in trigger,
thanks for suggestion