You need to sign in to do that
Don't have an account?
Dosbol T
trigger to auto populate the date based on other date
what is wrong with this code? It says - "Arithmetic expressions must use numeric arguments (4:43)",
Please help.
Please help.
trigger AutoPopAccPerDate on Billing__c(before insert, before update) { for (Billing__c billing : Trigger.new) { if (billing.Accounting_Date__c == null) { billing.Accounting_Date__c = Billing__c.Billing_Date__c + 30; } } }
The main problem in this line:
billing.Accounting_Date__c = Billing__c.Billing_Date__c + 30;
You must use billing.Billing_Date__c instead of Billing__c.Billing_Date__c
All Answers
The main problem in this line:
billing.Accounting_Date__c = Billing__c.Billing_Date__c + 30;
You must use billing.Billing_Date__c instead of Billing__c.Billing_Date__c