web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to refresh page when add user to acces team ?

(0) ShareShare
ReportReport
Posted on by

Greetings,

My Question is very short. How to can I?

Regards,
Bora

*This post is locked for comments

I have the same question (0)
  • Dynamics Pawan Kumar Profile Picture
    on at
    RE: How to refresh page when add user to acces team ?

    why you want to refresh the page? any specific reason may I know?

    Regards,

    Pawan Kumar

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: How to refresh page when add user to acces team ?

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans