Announcements
I made a batch job (Sysoperation based class) for sending an email , I need a function that when batch job is activated then only mail can be sent through X++ code else not
How to code this in X++ ???
vaibhav srivastav Great, please Verify the answer/s that helped.
thanks resolved
Hi,
If you want to check if the code is getting executed in batch in following classes.
controller class(Class extended from SysOperationServiceController):
this.isInBatch()
Service class (Class extended from SysOperationServiceBase)
this.isExecutingInBatch()
Hope this answers your question
Thanks
Hi Vaibhav, Please check this article, you can check in main method of controller class.
community.dynamics.com/.../quickfix-6-how-to-check-if-code-is-running-on-batch-server
André Arnaud de Cal...
293,998
Super User 2025 Season 1
Martin Dráb
232,850
Most Valuable Professional
nmaenpaa
101,158
Moderator