• David Jahnke
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 6
    Replies
I am looking for the easiest way to update the opportunity stage based on how many days we are away from the close date.

So if the opportunity has a stage of "Quoted" and
If close date is less than 30 days away set stage to HOT
If close date is 30 to 120 days away set to WARM
If close date is greater than 120 days away set to COLD

Thanks!
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.
I am looking for the easiest way to update the opportunity stage based on how many days we are away from the close date.

So if the opportunity has a stage of "Quoted" and
If close date is less than 30 days away set stage to HOT
If close date is 30 to 120 days away set to WARM
If close date is greater than 120 days away set to COLD

Thanks!