Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to refresh page with plugin?

(0) ShareShare
ReportReport
Posted on by

Hello everyone,

I wrote calculating duration when get AddUserToRecordTeam message with plugin. The page needs to be refreshed in order to be processed. For this reason, I need a code fragment that refreshes the page at the end of my operations. How can I do it ?

Thanks for helps,
Bora Acici

*This post is locked for comments

  • RE: How to refresh page with plugin?

    Greetings,

    Could you show an example if you have?

  • Suggested answer
    jlattimer Profile Picture
    jlattimer 24,558 on at
    RE: How to refresh page with plugin?
    You could create a custom Action and register a plug-in on it. Call the Action with JavaScript and when it completes use JavaScript to refresh to page.
  • Pranesh M Juwale Profile Picture
    Pranesh M Juwale 1,196 on at
    RE: How to refresh page with plugin?

    Hi

    Refreshing page from plugin is not feasible.As suggested by other folks, you need to find workaround using clientside scripting for this scenario.

  • Suggested answer
    gdas Profile Picture
    gdas 50,089 on at
    RE: How to refresh page with plugin?

    Hi Bora ,

    From server side you can not refresh client side page . So you need to write some client side logic when your event trigger from client side .

    Here is some reference you can check -

    msdn.microsoft.com/.../dn481607.aspx

    community.dynamics.com/.../the-xrm-page-data-refresh-method

    Hope this helps.

  • Suggested answer
    Shahbaaz Ansari Profile Picture
    Shahbaaz Ansari 6,205 on at
    RE: How to refresh page with plugin?

    Hi Bora,

    You cann't refresh a page from Plugin instead you can use javascript using below code

    Xrm.Page.data.refresh();

    Also you can refer: community.dynamics.com/.../the-xrm-page-data-refresh-method

    If you find it helpful, Please mark my Answer as Verified.

    Best Regards,

    Shahbaaz

  • Suggested answer
    Michel van den Brink Profile Picture
    Michel van den Brink 4,697 on at
    RE: How to refresh page with plugin?

    Hello,

    Plug-in code runs in the background and can not interact with the User Interface.

    You'd need to use JavaScript to refresh the page but, JavaScript can't reliability trigger on the AddUserToRecordTeam event.

      

    Perhaps a custom ribbon buttons would be helpful here, where you use JavaScript to both add the user to the team, then wait for an X period and then refresh the page.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans