When creating sales orders through X++ in Dynamics 365 F&O, you may need to assign financial dimensions programmatically . This is useful for integrations, automation, or custom processes where dimensions should be applied automatically. In this example, we create a SalesTable record and attach multiple financial dimensions. 1. Build the Financial Dimension Set First, create a helper method that collects dimension values and returns a DefaultDimension . private DimensionDefault addFinancialDimension( OMOperatingUnitNumber _businessUnit, ...