You need to sign in to do that
Don't have an account?

Opportunity.CloseDate being set to today on update call
I have a process that changes some values on Opportunity objects. In the case when an Opportunity is being set to a Purchased Stage from a previously non-Purchased Stage the CloseDate is being changed ON THE SALESFORCE SERVER SIDE to "today". I have looked at the message going across the wire and saw that CloseDate is indeed NOT "today" but rather the same value as it was when I queried for it. Nevertheless, when I log in to Salesforce after completing the update the CloseDate is set to "today."
Does anyone know why this would happen? A configuration setting? Perhaps there is some job/task someone has created that could do this? I don't expect anyone here to know what the task may be, I am asking if that is a possibility.
I have saved the XML for the update and its response and can post that if it would help.
Thanks.
Jason
Does anyone know why this would happen? A configuration setting? Perhaps there is some job/task someone has created that could do this? I don't expect anyone here to know what the task may be, I am asking if that is a possibility.
I have saved the XML for the update and its response and can post that if it would help.
Thanks.
Jason
Benji says it is the expected behavior to set an Opportunity's CloseDate to "today" when it is set to "Purchased" because "Purchased" is marked as a "Closed/Won" type of stage. However, I don't see this behavior in the Web interface. Am I missing something?
I really dislike this behavior because it now forces me to update an opportunity twice. Once for its original update and once to "reset" the CloseDate.
Why don't you change the type of Puchased to not be "Closed/Won"?