Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

How do you add a notification to MyNotifications?

Posted on by 422

Hi,

So i've created a notification that shows on some conditions. Now at the moment a user can choose if he sees this notification trough User Setup where i added a boolean field that decides whether it is shown or not. Now i want to get rid of the User Setup aspect and instead of using that i want to use MyNotifications.

In what way do i achieve this since there is no such this as new line in MyNotificiations?

*This post is locked for comments

  • InsertX Profile Picture
    InsertX 422 on at
    RE: How do you add a notification to MyNotifications?

    Yes like you said i found this:

    047658.Capture.PNG

    Now if i'm honest, i have no idea on how i should convert from one to the other. I tried it alongside with C/AL but i've never worked with that so that's just one big mess to me.

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: How do you add a notification to MyNotifications?

    You can use My Notifications, but you have to create a notification setup and assign an ID, and then review if that notification ID is enabled for that user or not. So it will not be a single line of code.

  • InsertX Profile Picture
    InsertX 422 on at
    RE: How do you add a notification to MyNotifications?

    Maybe to give a better view on it my code is as following at the moment:

    In my sales header table extension i have:

    3426.Capture.PNG

    So at the moment you can see that on a certain point i check whether the boolean variable in the user setup is checked or not and depending on that i show the notification.

    Now i want the same functionality but instead of using the user setup aspect, i want to use My Notifications but it seems i can't just do it the same way like User Setup by adding a line.

  • Suggested answer
    Avinash B Profile Picture
    Avinash B 1,455 on at
    RE: How do you add a notification to MyNotifications?

    Hi

    I hope you have to create notifications to the users. If my understanding is right then you have a records links (table ID 2000000068) for this.

    Here are a few references.

    www.youtube.com/watch

    docs.microsoft.com/.../addlink-function--record-

    forum.mibuso.com/.../how-to-create-recordlink-by-c-al-code

    Regards

    Avinash B

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