How to update social bar notes in CRM

Is there a way to update just a Notes section in Dynamics 365? I am adding the document when the button is clicked and it would be perfect if there are updates after this update.

I am checking what is the id of the Notes item to get it using Javascript, but they are all null.

document.getElementById("header_notescontrol")
Xrm.Page.getControl("notes")
document.getElementById("content_notescontrol")

      

@Utkarsh Dubey's code works with legacy forms included, but I read that this is causing performance issues and I see when I open any page with a post, it remains loading for a large amount of time (you can interact with fields in the form, but the page is still loading asynchronously).

Is there a way to update the notes section without using legacy forms?

+3


source to share


1 answer


function myFunction() {
    setTimeout(function(){ document.querySelectorAll('[title=NOTES]')[0].click(); }, 20000);
} 

      

and then you need to make one change under Administration -> System Settings -> General

.



Use legacy form rendering == Yes

+4


source







All Articles