Hi,
I have a button inside the ApplicationRibbon. The button executes some JavaScript. I want to refresh the ribbon after that to reflect the changes made.
My problem is that I don't have access to the formcontext when using a button inside the ApplicationRibbon. Right now I have to use the deprecated Xrm.Page.ui.refreshRibbon() to accomplish this. Passing the Crm Parameter PrimaryControl doesn't help because I only get passed null instead of the actual form context inside the javascript function.
Is there any way to refresh the ribbon without using the formcontext without refreshing the whole page? Or is there a way to pass the formcontext to a function inside the ApplicationRibbon?