Hello,
We recently upgraded our client from CRM 2011 to Dynamics 365. We are now in the process of applying custom code and making JavaScript changes. What we have come across till now is that if we publish a particular change of JavaScript, the Dynamics 365 code does not take in the new code applied.
Scenario: We were working on a JavaScript in contact entity to detect duplicate SSN numbers. We applied the code by putting in alert boxes to check if the function was getting correctly called. Once we were sure that we were getting desired results, we removed the alert boxes and then "Published" the customisation's.
Then on checking the contact entity, it executed old code (with alert boxes). This shouldn't have been the case as we had removed the alert boxes and they should not have appeared. We tried refreshing the browser, but it did not work. We closed the browser, waited for 5mins and then reopened. On checking again, it showed us correct results (no alert boxes). The same thing happened next day when we first opened the contact. It again started showing is alert boxes when there were none in the code as the code wasn't touched overnight.
Closing and re-opening the browser gave us correct results again.
This is happening with other entities as well. We are unable to to understand or determine the cause of this.
So does this mean that our "publish" is not working? Or are there any delays for the script to run after we "publish" ? Or is it anything else?
We tried to clear the cache of the explorer and that did work. But telling the client to clear cache before using the JavaScript each time is a bit too much.
Any help or explanation or solution for this is highly appreciated.
Thanks & Regards,
Sudeep
*This post is locked for comments