I have code in a ribbon enable rule and this code executes a function.
Ok, the code executes twice on load page form. Is it a normal behavior?
I have checked that if you have referenced a Xrm Object in your code the aforementioned behavior occurs, however, if you remove any reference to Xrm Object, the code is executed only once.
Any help to avoid this ribbon behavior?