Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Load Event for Entity Notes Grid on D365 Portal

(0) ShareShare
ReportReport
Posted on by 15

Hello, 

I see there is an event that triggers when I add / remove a note on an entity form on the D365 portal. For example:

$("#entity-notes").on("refresh", function() {
  do something...
});


Is there a similar event that would trigger off the loading of the notes section? I can do this for regular subgrids using a "loaded" event, but it doesn't seem to work for notes (which I assumed would fall under the same triggers as subgrids). 

What I need is to be able to count the number of attachments associated with a record on the portal form - because these are fetched via AJAX, I need to ensure that they have all been fetched before I write my code based on the number of attachments.

Best,

  • Verified answer
    Infinitemeridian Profile Picture
    Infinitemeridian 35 on at
    RE: Load Event for Entity Notes Grid on D365 Portal

    Thanks Nicholas,

    I ended up something very similar regarding the liquid / fetchxml that you suggested.

    Best,

  • Verified answer
    Nicholas Hayduk Profile Picture
    Nicholas Hayduk 2,863 on at
    RE: Load Event for Entity Notes Grid on D365 Portal

    Sorry, no load event that I'm aware of.  The Entity Notes functionality is separate from subgrids, so it doesn't have the same features.

    I think one of the challenges with a load function is that there may be pagination (or even automatic scroll pagination) that you'd have to worry about.

    What about using FetchXML and Liquid to determine the number of related notes?

    Nick

  • zica Profile Picture
    zica on at
    RE: Load Event for Entity Notes Grid on D365 Portal

    JavaScript on the creation of notes is not possible. You can write a plugin on Annotation entity as Post Operation.

    Here you can find the Plugin sample:

    docs.microsoft.com/.../tutorial-write-plug-in

    crmbook.powerobjects.com/.../

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…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

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,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans