Is it possible to start a Job Queue entry with another user? (NAV 2017)

Jan87
Member Posts: 26
We are quite new to NAV 2017. We are coming from 2009. The Job Queue is a cool feature, but one thing I don't understand.
We want to use the Job Queue to run Background-Jobs (formerly NAS-Jobs). We want them to be started with different technical Users with only the neccessary permissions.
The problem is that the user that runs the queue has to push the button "Ready" in the Job Queue Entry Page.
And this every time the queue stops or need to be restarted/rescheduled.
Is there any possibility to change it?
Sorry for my bad english
We want to use the Job Queue to run Background-Jobs (formerly NAS-Jobs). We want them to be started with different technical Users with only the neccessary permissions.
The problem is that the user that runs the queue has to push the button "Ready" in the Job Queue Entry Page.
And this every time the queue stops or need to be restarted/rescheduled.
Is there any possibility to change it?
Sorry for my bad english

0
Best Answers
-
Apparently not anymore. This is due to scheduling posting etc. from the user itself. If someone schedules a posting queue and the user can be edited, there is no secure way to tell, who started this in first place.
If a job has to be executed more often, you can check "run on monday" etc. and play with "No. of minutes between run"
Another option would be to enable this again by code.5 -
Hi, I ran into this problem after upgrading to 2017. We use Job Queue Entries heavily, and they run using specific Service Accounts for example "AD\SVCACCOUNT1". We found that if the Job Queue Entry fails, and is restarted by a user, the Job Queue Entry/Scheduled Task would then be updated to run as that user.
We tried to solve this using Events, but there is no Event in our version which would help. There is an Event on COD453 called "OnBeforeScheduleTask", it would be nice to have the event "OnAfterScheduleTask", which would allow us to update the User ID field to "USERID" without modifying the standard codeunits.
Alas, there is no event so we had to resort to modifying the codeunit to update the User ID fields after the task has been scheduled. Hope this helps.
5
Answers
-
Apparently not anymore. This is due to scheduling posting etc. from the user itself. If someone schedules a posting queue and the user can be edited, there is no secure way to tell, who started this in first place.
If a job has to be executed more often, you can check "run on monday" etc. and play with "No. of minutes between run"
Another option would be to enable this again by code.5 -
Hi, I ran into this problem after upgrading to 2017. We use Job Queue Entries heavily, and they run using specific Service Accounts for example "AD\SVCACCOUNT1". We found that if the Job Queue Entry fails, and is restarted by a user, the Job Queue Entry/Scheduled Task would then be updated to run as that user.
We tried to solve this using Events, but there is no Event in our version which would help. There is an Event on COD453 called "OnBeforeScheduleTask", it would be nice to have the event "OnAfterScheduleTask", which would allow us to update the User ID field to "USERID" without modifying the standard codeunits.
Alas, there is no event so we had to resort to modifying the codeunit to update the User ID fields after the task has been scheduled. Hope this helps.
5 -
this must be done before the Job is scheduled with CreateTask, than it works ...Regards
xStepa0
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