Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Display Note Content within Notification

Posted on by 65

Hi,

I have a user who would like to display the text of a note within the Page Notification. Anyone know if that's possible. Here is what I've been working with:

function warningonload() {
    var message = "THERE IS AN ACTIVE NOTE ON THIS ACCOUNT";
    var type = "WARNING"; //INFO, WARNING, ERROR
    var id = "1"; //Notification id

    //Display the notification
    Xrm.Page.ui.setFormNotification (message, type,id);
}

*This post is locked for comments

  • Laterrius Profile Picture
    Laterrius 65 on at
    RE: Display Note Content within Notification

    I appreciate your assistance. It worked! Thanks!

  • Verified answer
    Gopalan Bhuvanesh Profile Picture
    Gopalan Bhuvanesh 11,397 on at
    RE: Display Note Content within Notification

    OnLoad form event, you can get the value and concatenate to the message, so that the notification would be displayed.

    var noteString = Xrm.Page.getAttribute("new_notecontenthidden").getValue();

  • Laterrius Profile Picture
    Laterrius 65 on at
    RE: Display Note Content within Notification

    I have a workflow that copies recent notes from the Note entity. The contents are placed in a hidden text field on the account. The workflow overwrites the note in the hidden field each time it executes. There would only be one string of text in that hidden field at any given time.

  • Suggested answer
    Gopalan Bhuvanesh Profile Picture
    Gopalan Bhuvanesh 11,397 on at
    RE: Display Note Content within Notification

    How would you choose the (one) Note from the list of notes for the record?

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans