Notifications
Announcements
No record found.
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++ ???
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
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
thanks resolved
vaibhav srivastav Great, please Verify the answer/s that helped.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 611 Most Valuable Professional
André Arnaud de Cal... 529 Super User 2025 Season 2
Sohaib Cheema 285 User Group Leader