Greetings,My Question is very short. How to can I?Regards,Bora
*This post is locked for comments
why you want to refresh the page? any specific reason may I know?
Regards,
Pawan Kumar
Hi Bora ,
When you are adding users in the access team normally you don't have any control at client side so straight way its not possible. I am just giving you an workaround by using set interval.
Let say you have registered one function in onload event which is triggering every 2 seconds and check whether you have added any user in the grid compare to initial number of user of grids and if any additional user founds then you can refresh.
function PageRefreash() { var AccessTeamGrid = Xrm.Page.getControl("Access team subgrid name").getGrid(); var numberOfRows = Xrm.Page.getControl("Access team subgrid name").getGrid().getRows(); var intervalId = window.setInterval( function () { window.clearInterval(intervalId); var newnumberOfRows = Xrm.Page.getControl("Access team subgrid name").getGrid().getRows(); if(newnumberOfRows>numberOfRows ) { location.reload(); } }, 2000); }
Hope this helps.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
HR-09070029-0 2
UllrSki 2
ED-30091530-0 1