microsoft / ALAppExtensions

Repository for collaboration on Microsoft AL application add-on and localization extensions for Microsoft Dynamics 365 Business Central.
MIT License
792 stars 622 forks source link

[Bug]: Remove `[Scope('OnPrem')]` from `SetBatchMode` in Codeunit 426 #27647

Closed AlaWeslati closed 1 day ago

AlaWeslati commented 1 week ago

Describe the issue

The SetBatchMode function in codeunit Payment Tolerance Management (ID 426) is unnecessarily restricted to on-prem environments with the [Scope('OnPrem')] attribute, even though it does not rely on on-prem-specific functionality.

Expected behavior

The [Scope('OnPrem')] attribute should be removed, allowing the SetBatchMode function to be used in both SaaS and on-prem environments.

Steps to reproduce

  1. Attempt to use the SetBatchMode function in an extension targeting SaaS.
  2. Observe that the function is unavailable due to the [Scope('OnPrem')] restriction.

Additional context

This change will increase the usability of the SetBatchMode function without introducing any breaking changes.

I will provide a fix for a bug

JesperSchulz commented 1 week ago

Looks like this procedure only is available in the CH version of Business Central? Also, the procedure is in the BaseApp and the issue hence cannot get addressed in this repo. I will move the issue to the right repo.

JesperSchulz commented 1 day ago

Availability update: We will publish a fix for this issue in the next update for release 25.

Build ID to track: 27075.