New answers tagged

0

Based on your updated question, isn't it as simple as: public static void myFunc(val1, val2){ myObj.Field1__c = val1 == null ? myObj.Field1__c : val1; myObj.Field2__c = val2 == null ? myObj.Field2__c : val2; } (Ignoring the fact this isn't a valid apex method as your parameters aren't typed)


1

Actually I don't think. You need Workflow rule for this. Hope you can get Customer_Budget__c and Unit Price values via manually. So Please use formula function to achieve this, For Quantity field formula will be, Customer Budget / Unit Price For Total field formula will be, Quantity * Unit Price For Remainder Amount field formula will be, ...


Top 50 recent answers are included