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 resposta
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