Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Sub grid to update each time a field is updates

Posted on by Microsoft Employee

I have added a field to the Contact entity called Website Downloads. This field is updated every time a client clicks on our website but what I want to do is have a sub grid within the Contact form that shows what this entry is each time it's updated. Then I ideally need this in a view with the contacts name and a list of the downloads so I can do an advanced find on the field. Any ideas please. PS I have tried to add a new entity that links to this field but the problem is you cannot do an OR on an Advanced find for 2 separate entities so back to square one. 

*This post is locked for comments

  • Verified answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Sub grid to update each time a field is updates

    If this has answered your question could you please mark as verified so that it could help other members in the community

    Thanks

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Sub grid to update each time a field is updates

    Ok thank you for your quick reply.

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Sub grid to update each time a field is updates

    I dont think you will be able to do this without custom script as Dynamics 365 out of the box does not have this refreshing feature. Once you opened a form, the subgirds wont refresh unless we add any items from the form or if we refresh manually.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Sub grid to update each time a field is updates

    Thanks problem is I cannot write script!!!

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Sub grid to update each time a field is updates

    What about if you can have the following script on onload of the the main entity form to do an auto refresh of the subgrid every 

    OnLoad = function()
    {
    	setTimeout(SubGridRefresh, 60000);
    }
    
    SubGridRefresh = function()
    {
    	var gridControl = Xrm.Page.ui.controls.get("yousubgridname");
    	if (gridControl != null)
    	{
    		gridControl.refresh();
    		setTimeout(SubGridRefresh, 60000);
    	}
    }

    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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans