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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Auto-refreshing views / grid in dynamics CRM 2015

(0) ShareShare
ReportReport
Posted on by 60

Hi Experts,

Is there a way to auto-refresh the views in Dynamics CRM? Consider the following example:

We have 2 views 'Active Contacts' and 'Inactive Contacts'. The view 'Active Contacts' has a custom action 'Move to Inactive'. When I select a record on this view and select the custom action then it changes the status of the contact record to 'Inactive' through a workflow that is called on selecting that action. After that the 'Active Contacts' view does not refresh itself. I need to auto-refresh this view after every 30 seconds to see that inactive record has moved out of the active contacts view.

Best Regards,

Hammad

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    SONU Profile Picture
    193 on at

    Hi hammad,

    I think there is a way to do so, but its not a standard feature, its a unsupported way to get it done,

    you can refer this article and try it, hope this will work.

    http://bruce.windram.co.za/?e=12

    Thank you

    Nidheesh

  • Suggested answer
    Community Member Profile Picture
    on at

    As of now there is no way to do it in a supported way. But you can have one work around as explained below.

    crmtipoftheday.com/.../auto-refresh-crm-dashboard

    Just try it out.

    Mansoor

  • Anil-CloudFronts Profile Picture
    on at

    We were looking for something similar as well. For Support Queues! But there is no auto refresh option except for the dashboards auto refresh option mentioned below by Mansoor. This would be very important feature to have. We have auto save, now we need auto refresh.

  • Verified answer
    Community Member Profile Picture
    on at

    We have recently accomplished this by adding a custom button on the view. We used the following JS in the Enable rule of this button.

    OnRibbonButtonClicked = function(grid){

    setTimeout(function fs(){

    document.getElementById("crmGrid").control.refresh();  

    }, 9000);

    return false;

    }

    This Enable rule will hide the custom button but will refresh the View after every 9000ms. This is an unsupported way but works like a charm :)

    Thanks,

    Yousuf Ali

  • Anil-CloudFronts Profile Picture
    on at

    Thank you Yousuf. One of our Sr. Devs is going to try this today. I will update you!

  • Anil-CloudFronts Profile Picture
    on at

    Hi Yousuf,

    So we were able to deploy this on the service queue view. We also removed the custom button and made it auto enabled so that if you are on that view. It will refresh. We set the refresh to 60 seconds. It seems to work quite well. But several times we see it doing refresh in quick intervals that are spaced 1-2 seconds apart, then it does the 60 second interval and again the quick interval. Not sure if you have faced this before. But Thanks again for showing this solution!

    Warm Regards,

    Anil

  • GKilpatrick Profile Picture
    40 on at

    I'm a complete newbie and have no idea how I would create a button on the Queue view.  I've had a look at the Ribbon Workbench plug-in for XRM Toolbox but it won't recognise the Queue entity as an entity?  I really just want to be able to somehow enable Auto-Refresh on my queue lists.  The post I was looking at suggested adding a custom button .. but that's where I got lost.  Any suggestions with very basic instructions would be very much appreciated!  Thanks GKilpatrick

  • Anil-CloudFronts Profile Picture
    on at

    Hey,

    We did implement auto refresh for a client and it was OK. It was not very consistent and it's really a hack. If you still want to deploy it, I have asked my dev team to provide a write up on it. Please ping me on ashah@cloudfronts.com and I will connect you with our team member.

  • Suggested answer
    LaszloPenzes Profile Picture
    on at

    If you have the id of one of the records in the view then there's a more elegant and fully supported way which was introduced around 2018:

                       var lookupOptions = {};

                       lookupOptions.entityType = "contact";

                       lookupOptions.id = selectedItems[0];

                       Xrm.Utility.refreshParentGrid(lookupOptions);

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans