You need to sign in to do that
Don't have an account?
David Jahnke
Simple Trigger to set "Authorization Required" checkbox.
Hi, First attempt at any kind of APEX trigger and could sure use some help.
On the object: gii__PurchaseOrder__c I display the realted list of line items that appear on the purchase order. These line items are displaying from: gii__PurchaseOrderLine__c which includes the field Product_Code__c and gii__Line_Gross_Amount__c.
I am looking for the code I need that will check to see IF any line has a Product_Code__c = 6410 or 1680 AND the gii__Line_Gross_Amount__c > $1000 then the Approval_Required__c field on the gii__PurchaseOrder__c page needs to be set to = TRUE.
Thanks in advance for any tips.
On the object: gii__PurchaseOrder__c I display the realted list of line items that appear on the purchase order. These line items are displaying from: gii__PurchaseOrderLine__c which includes the field Product_Code__c and gii__Line_Gross_Amount__c.
I am looking for the code I need that will check to see IF any line has a Product_Code__c = 6410 or 1680 AND the gii__Line_Gross_Amount__c > $1000 then the Approval_Required__c field on the gii__PurchaseOrder__c page needs to be set to = TRUE.
Thanks in advance for any tips.
Try this code :-
Thanks
Anil.B