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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Sub Grid of Associated Entities not showing data until page is refreshed

(0) ShareShare
ReportReport
Posted on by

I have created a plugin that fires during the OnEntityPostCreating. The plugin uses service.Associate(...) to associate entities to it. The associated entities are displayed on a sub grid of the Entity that was created. After the entity has saved the sub grid is empty, but if I refresh the page they are there.

Is it possible to have the grid populated after the initial save?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi,

    Is your plugin configured to run synchronously or asynchronously? If you configure your plugin to run in a synchronous mode, you would see the records under the grid instantly after save.

    Thanks

  • Verified answer
    Shidin Haridas Profile Picture
    3,499 on at

    Hi,

    Method 1:

    If your plugin is running async, then there is no way for you to know when the Associate operation is over.
    A workaround would be wait for 'x' milliseconds and then refresh the page through a form script.

    Method 2:
    If your plugin is sync, then have an event handler on change of 'modifiedon' field and do a data refresh only.

    Let me know if you need more details.

    Cheers!

  • Community Member Profile Picture
    on at

    thank you for replying, it is running synchronously

  • Community Member Profile Picture
    on at

    Do you mean using javascript to call Xrm.Page.data.refresh() . If not please explain, thanks!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans