Hi Michal,
I would firstly be loath to run the 'generate work orders' option for 2,000 PMs even though you can mark it to run the background because it's not the best way to do so. Anyway, yes, it will send you 2,000 emails as that is generated per PM and there is no option to only send the email if it fails to generate.
It tells you the PM in question, have you investigated why there is an error?
Run it again, but only for that PM, look in the server logs and see what that says.
Is there an alternative approach = yes. Do you avoid 2,000 emails = yes. Will it provide a detail of why it failed = maybe.
I would have set-up the PMWoGenCronTask to run for all active PMs. Note: I do not place a restriction, other than the PM must be active. You can of course have multiple instances of the cron task with their own SQL. I would also have this run once a day. Then you will providing you have got the Organization option correct , you will only get one email.
------------------------------
Regards, Craig Kokay
Principle Consultant, COSOL
https://cosol.global/Ph: +61-411-682-040
email:
craig.kokay@cosol.global------------------------------
Original Message:
Sent: Fri January 26, 2024 08:32 AM
From: Michal Hrubý
Subject: Preventive Maintenance - work order generation
Hi community,
I would like to ask for one thing. When I am using functionality "generate work orders" in application Preventive Maintenance I can write below into pop-up window email address to inform me when it`s completed. For sure, notification email I recieve every time, but when I start to generate about 2000 PM and it will generate 2000 WO`s there are only few which were wrong(not created) I have to search this notification email and find the wrong work orders. Is there any option to set up notification email to send me only "Incorrect" Work Orders? For emaple which were incorrect, missing something or weren`t created?
Is there any infrastructure configuration or sql condition?
Thank you for your support!
------------------------------
Michal Hrubý
------------------------------