Skip to main content
This is my code. 

 

private static boolean setStage4(boolean datehit, Opportunity opty, boolean isvalid){

 

            isvalid = false;

 

            if(opty.CRM_Dur_Stage_4_Date__c == null){  //this always returns true

 

                 opty.CRM_Dur_Stage_4_Date__c = date.today();

 

                 if(datehit == true){

 

                      opty.CRM_Dur_Stage_4_Hit__c = datehit;

 

                 }

 

            }

 

            isvalid = true;

 

            return isvalid;

 

                  

 

        }
답변 1개
  1. 2014년 2월 10일 오후 5:34

    I found the cause of my problem just by addressing the questions in your

    email. The code was being called from a trigger but the opportunities

    were the result of a query and I had not included the new fields in the

    query. I am surprised that this did not result in an error so you might

    be able to explain that to me, otherwise I have been able to move forward

    on my project. Thanks for responding!!

    Thanks,

    Kathy Carter | Systems Analyst

    479.361.7646 (O) | 479.263.2627 (C)

    J.B. Hunt Transport, Inc. | Our business is moving yours.?

    Single Source | Intermodal | Dedicated | Final Mile | Truckload | LTL |

    Refrigerated | Flatbed

0/9000