Job Scheduler query

Datapac
Member Posts: 97
Hi,
I have two reports that generate Sales invoices and automatically email them to Customers. I'd like to schedule these two reports to run in Job Scheduler, but I'd like the email account that they get sent from to be different depending on a flag on the Customer.
Is it possible to run multiple instances of Job scheduler, one under one user login that runs Report A, and one under another login that runs report B?
If not, any ideas on how I could resolve this scenario?
Thanks in advance!
I have two reports that generate Sales invoices and automatically email them to Customers. I'd like to schedule these two reports to run in Job Scheduler, but I'd like the email account that they get sent from to be different depending on a flag on the Customer.
Is it possible to run multiple instances of Job scheduler, one under one user login that runs Report A, and one under another login that runs report B?
If not, any ideas on how I could resolve this scenario?
Thanks in advance!
0
Comments
-
I think JS is mostly for codeunit running, not report running? But I am not sure.
But it 100% runs codeunits. So the safe advice is to write a codeunit that looks at the flag, decides what to run, run that, sends that etc. and run this codeunit with JS.0 -
Hej Datapac,
The Job Scheduler will run reports nice.
In the standard, the Job Scheduler only may be started ones.
With changes, you can run as many Job Schedulers as you wish.With Kind Regards
Thoms Hviid Thorn0 -
Hi guys,
I can run my reports under the job scheduler and they both run fine, and generate emails to customers.
The problem is that I need one of the reports to run and be emailed from one email account (eg test1@company.com) and the other report to be emailed from a different account (eg test2@company.com).
I cannot start 2 instances of the job scheduler under two different login sessions.
Thomas, you mentioned that it is possible to start as many job schedulers as I wish with changes. Can you give me a pointer as to what changes are necessary to do this?
Thanks again!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions