Hi ,
I want to fetch view name on clicking of ribbon button . for eg . below i have opened Contacts in Dynamics 365 . By default it opens default view i.e "My Active Contacts" .
So when i click on New button in this view then i want to run some custom javascript where i want to fetch this view name "My Active Contacts". As based on view name , i want to open different form as per each view.
So i tried by follow below mentioned blog but this javascript throws error when running .
Error :- object doesn't support property or method 'get_viewtitle'
Blog :- https://mahadeomatre.blogspot.com/2015/04/hide-ribbon-button-based-on-view.html
Can anybody help me on this . How can i do it ?
Thanks