Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Microsoft Dynamics GP 2016 R2 Business Alerts

Posted on by 485

I have 3 questions for Dynamics GP Business Alerts.

1. Can I execute business alerts forcefully/manually from SQL Server Agent Jobs? e.g. if a alert does not executed on a given scheduled for any reason like server was down, Internet was not working or any other reason. Can I later execute that alert from SQL manually? How? I tried right click on particular Job Name (SQL Agent) and Start Job at Step... but nothing happened.

2. I have configured 5 or 6 business alerts and scheduled on daily basis. But sometimes they work and sometimes they don't. Sometimes 2 out of 6 executes normally and 4 don't work at all. I checked all their conditions and all conditions are true and there is data/information is available to send as alert, but they simply don't work.

3. Is there any documentation available for making SQL SSRS QUERIES/REPORTS/VIEWS to convert into SQL SERVER AGENT JOBS, so that particular Sql Statement/report/view can be executed at given schedule and an auto Email to operator/user. That SQL Query will contain some results, like Today's Purchase Orders etc. I mean if I don't want to use Business Alerts and simple SQL Queries to run at scheduled time and auto Email to number of users/Email addresses etc. 

Kindly acknowledge.

  • adeel333 Profile Picture
    adeel333 485 on at
    RE: Microsoft Dynamics GP 2016 R2 Business Alerts

    Thank you for your reply. I am going to try your suggestions and will let you know soon.

  • Suggested answer
    RE: Microsoft Dynamics GP 2016 R2 Business Alerts

    Hello Adeel,

    Business Alerts are basically just SQL Jobs, so running them directly from the Job list should work. As a note, you will need to know exactly what the response you are expecting is. I created a quick test alert that would always fire, and had Send To my User ID (Shows as a task on the GP Homepage). When I ran the associated SQL Job, my task appeared.

    As for your non-working alerts, what do you have them setup to Send To? Are the same alerts always failing, or does a different one fail each time? What are the alerts setup to do, is it possible that the conditions are met now, but were not when the alert was setup to run?

    The community may have some nicer ways of pulling off your last ask, but I usually recommend setting up a Job with a SQL Script set to send an email through DB Mail. You can then add a view to the Query part of DB Mail. The link below speaks more about DB Mail, with example B sending an email with Query results:

    docs.microsoft.com/.../sp-send-dbmail-transact-sql

    Thanks!

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

Product updates

Dynamics 365 release plans