[Batch Framework] Maintaining batch Job History by Save job to history option in MSD365 Finance and Operations
Dear Microsoft BizApps Community,
Welcome to my next blog on batch jobs framework, in this article, we shall see how we can define which job to have batch job history saved and also, we can define which job to have only error history saved.
Scenario and Concept
A batch job helps to execute any activity in D365 in the background without having manual effort for the same activity, example, Posting Free Text invoice by batch, it helps to post Free text invoice automatically without manual effort in recurrence basis.
However, if a batch job is recurring time is very short, the batch job history keeps increasing and as a result database size gets increased, it has costing impact.
Solution design Concept
MSD365 has a very robust function in batch job setup itself, where Consultant can setup which batch to have history saved or only Error history saved.
Note- It also has possibility not to have any history as well, however this anyway does not help for audit purpose for critical batch jobs.
Configurations
Navigate to System administration->> Inquires ->> batch jobs
Select any batch job-> clink on the “job ID”
The below form will open for that batch job
From the same form, Go to “Save job to history” field ->> from here we have three options as follows~
Always- System will store all the recurrence batch job ran history in Batch Job history form
Errors only- System will only store ran but failed/error history in Batch Job history form
Never- System wont ever store any history in the Batch Job history form
That’s it for this article, thanks for going through
Happy days
*This post is locked for comments