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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Batch Job Alert Rule X++

(0) ShareShare
ReportReport
Posted on by

Hi Guys,

Is it possible to configure Alert Rule for Batch Job through X++?

pastedimage1602504765702v1.png

If yes, will be very grateful for examples of code or articles links 

I have the same question (0)
  • Gunjan Bhattachayya Profile Picture
    35,429 on at

    Hi Polinak,

    You can try something like this -

    BatchJob    batchJob;
    
    Map alertsData = BatchJobAlerts::addAlertsToMap(
                    curuserid(), 
                    NoYes::No, // Value for Ended batch job
                    NoYes::No, // Value for Error batch job 
                    NoYes::No, // Value for Canceled batch job
                    NoYes::No, // Set value if you want to alert using pop-ups
                    NoYes::No, // Set value if you want to alert using e-mail
                    null);
    
    BatchJobAlerts::saveAlerts(batchJob.RecId, alertsData);

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 433 Super User 2026 Season 1

#2
Subra Profile Picture

Subra 382

#3
Martin Dráb Profile Picture

Martin Dráb 279 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans