Skip to main content

Notifications

Announcements

No record found.

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 203

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);

  • Martin Dráb Profile Picture
    Martin Dráb 230,340 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.

  • Martin Dráb Profile Picture
    Martin Dráb 230,340 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.

  • Awaxx Profile Picture
    Awaxx 203 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
    Martin Dráb 230,340 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?

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,602 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,340 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans