• Avinaash B
  • NEWBIE
  • 10 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
Avinaash B

Hi , I have a requirement. I have a numeric field in Account called 'Total_Sum_of_Contacts__c' (parent field) and an other numeric field in Contact called 'Num__c' (child field). The numeric field(Total_Sum_of_Contacts__c) in Account should show the total of all the contacts' numeric field(Num__c). I need to write a trigger. Please someone suggest me a good trigger.
 
Avinaash B

Hi , I have a requirement. I have a numeric field in Account called 'Total_Sum_of_Contacts__c' (parent field) and an other numeric field in Contact called 'Num__c' (child field). The numeric field(Total_Sum_of_Contacts__c) in Account should show the total of all the contacts' numeric field(Num__c). I need to write a trigger. Please someone suggest me a good trigger.
 

Is there a way to set up a parameter in a method to accept anyType? almost how when you use Double.valueOf(anyType) works. I want to do this to my own method where i can accept a string, an integer, or double and return a double after i do some transformations to it.

 

Is this possible?