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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

BP warning issue : 'add notification' is obsolete: "addnotification is deprecated. please use addsystemnotification"

(0) ShareShare
ReportReport
Posted on by 229

Hi guys, 

I got this BP warning 'add notification' is obsolete: "addnotification is deprecated. please use addsystemnotification", when i replace the obsolete function by the recommended one i could compile without errors but the Pipeline Build crashed with errors and it says it's coming from that changement.

What should i do ?

Here's the code before replacement.

Thank you.

            SystemNotificationDataContract notification = new SystemNotificationDataContract();
            notification.Users().value(1, curUserId());
            notification.Title("@EUKLabelFile:EUKLoadCompleted");
            notification.Message(strfmt("@EUKLabelFile:EUKNumberElementLoaded", securityMenusFirst.RecId));
            SystemNotificationsManager::AddNotification(notification);

I have the same question (0)
  • Martin Dráb Profile Picture
    236,974 Most Valuable Professional on at
    RE: BP warning issue : 'add notification' is obsolete: "addnotification is deprecated. please use addsystemnotification"

    Is the pipeline configured for the same application version?

  • Awaxx Profile Picture
    229 on at
    RE: BP warning issue : 'add notification' is obsolete: "addnotification is deprecated. please use addsystemnotification"

    Yes the pipeline is configured with the same application

  • Martin Dráb Profile Picture
    236,974 Most Valuable Professional on at
    RE: BP warning issue : 'add notification' is obsolete: "addnotification is deprecated. please use addsystemnotification"

    What exactly do you mean by the same application? Do you realize that I'm talking about the version?

    If the agent tries to build your code on an old version of Microsoft code, you'll get into this problem. So it's definitely worth verifying. Please check the version of F&O appliocation (e.g. 10.0.31) used by your development environment and your build agent.

  • Martin Dráb Profile Picture
    236,974 Most Valuable Professional on at
    RE: BP warning issue : 'add notification' is obsolete: "addnotification is deprecated. please use addsystemnotification"

    SysOperationController stores the caption in usage data and loads it together with parameters from the last run. If you don't want it, you can (for example) override caption() and always return your label, regardless of the contents of dialogCaption variable.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 701 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 588 Most Valuable Professional

#3
Sumit Singh Profile Picture

Sumit Singh 544

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans