
I am trying to perform inventory batch reservation through X++ code by running it from a batch job in Dynamics 365 Finance & Operations.
The requirement is to reserve inventory (including batch-controlled items) automatically when the batch job runs, similar to what happens during manual reservation from the sales order.
I have tried using standard reservation classes (for example InventUpd_Reservation, InventMovement) but the reservation is not happening when executed in batch, although it works interactively.