function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ForceLoverForceLover 

will tigger support

HI Everyone,

 

 I want to add a 5% of amount to the existing amount with triggers like

 

Amount__c=m.Amount__c+5%

 

% is not supported by apex triggers

 

how can i do this ..

 

Thanks.... 

Best Answer chosen by Admin (Salesforce Developers) 
KapilCKapilC

HI,

 

You can use simple math formula to calculate % for e.g.

Amount__c=m.Amount__c+(m.Amount__c *5/100)

 

[If you got answer from my post please mark it as solution.]
Thanks,
Kapil