Insert Shortcut Dimension Value in Pre-Entries in BC D365:
(1) In this blog, we will learn about dimension value insert in unposted entries in Business Central D365. Refer to Dimension Set Entries Overview.
(2) For Global Dimensions, there is no need for this below code, you can simply assign or modify the value. Because Global Dimension is available in all tables. But Other than Global dimensions, there are Shortcut Dimensions. For assigning or modifying values via AL code, follow the below code. For explaining this, I am doing changes in Sales Line, as shown.


(3) After doing this, call this function, as per your requirement, and see the result.