Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / Disable Batch Processi...
Finance forum
Suggested answer

Disable Batch Processing button on Batch dialog form of SysOperation Framework in X++

Posted on by 742

Hi everyone,

I have to disable Batch processing button, so that user cannot set it to No whenever dialog pops up.

I am using SysOperationFramework.

I tried solution mentioned on below blog, but that did not work for me.

https://www.linkedin.com/pulse/how-disable-batch-process-d365fo-lokesh-yadav/

Can you please suggest how this can be achieved?


  • Suggested answer
    Navneeth Nagrajan Profile Picture
    Navneeth Nagrajan 1,231 on at
    Disable Batch Processing button on Batch dialog form of SysOperation Framework in X++ D365 F&O
    Hi,
     
    As Martin rightly said the controller class should override either the canGoBatch() or mustGoBatch() methods and return false in this case. A glimpse of the standard class SysOperationsServiceController where these methods exist.
     
  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 223,760 Super User on at
    Disable Batch Processing button on Batch dialog form of SysOperation Framework in X++ D365 F&O
    I think your controller should override canGoBatch() method and return false.
  • Rhushikesh R Profile Picture
    Rhushikesh R 742 on at
    Disable Batch Processing button on Batch dialog form of SysOperation Framework in X++ D365 F&O
    Below is the code,

    It shows compiler error. This method does not exist.

    fieldBatchExecuteValue method does exist but not fieldBatchExecuteAllowEdit.

    Neither worked for me,

  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 2,689 on at
    Disable Batch Processing button on Batch dialog form of SysOperation Framework in X++ D365 F&O
    Hi,

    Can you share your code? Try to do full build for your model and reset usage data, it seems cache issue.



    Thanks,
    Waed Ayyad
    If this helped, please mark it as "Verified" for others facing the same issue
    ​​​​​​​
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,502 Super User on at
    Disable Batch Processing button on Batch dialog form of SysOperation Framework in X++ D365 F&O
    Then in that case, instead of showing up this batch dialog, you can try do other way like clicking of certain menu item button the process will directly get processed in batch mode without any batch dialog. So that it is more smoother process.
  • Layan Jwei Profile Picture
    Layan Jwei 3,282 Super User on at
    Disable Batch Processing button on Batch dialog form of SysOperation Framework in X++ D365 F&O

    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future

Helpful resources

Quick Links

Contextual content recommendations & SharePoint Q&A

Instantly access relevant sales materials…

Beyond the DRA Cloud Label Printing

Explore cloud-based label printing within Dynamics 365…

HR Infrastructure Customer merge

Important considerations for HR Customer migrations…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,418 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 223,760 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,142

Featured topics

Product updates

Dynamics 365 release plans