You need to sign in to do that
Don't have an account?

Receiving error called: 'Arithmetic expressions must use numeric arguments'
I am not sure why this error is popping up or what this error means. Can someone help me out. Here is a sample of the code I used:
trigger AutoInventory on Sol_sence_Sample__c (before insert, before update) { If(Trigger.IsInsert || Trigger.IsUpdate) { for(Sol_sence_Sample__c co : Trigger.New) { If(co.Shipped__c == 'checked' && co.sol_sence_inventory__c != null && co.Quantity__c != null) { co.Sol_sence_Inventory__c = co.Sol_sence_Inventory__c - co.Quantity__c; } } } }
Please mark as best answer if resolved.
+1 to all.
You can achieve this requirement with the help of Processes/Workflows with which you can avoid writing Apex in your Org and also escape from writing Unit Tests ;)
If you can expand your requirements, I can even create a Process for you.