Posts

Showing posts from February, 2024

Working with muliple label files -- an easy hack to save lotta time

Image
  Yeah, this happens when you are working with multiple label files. If you are working with a client that has multiple languages, then obviously you have to create the same label, across all these files, for each language, each time you are creating a new Label. You have to open the UI again and again for each language and repeat the same operation: Tiresome, ain't they? Here is an easy hack for that. Create the label once using UI, and then replicate them across all languages: Create all the labels you want to add, by opening UI from any label/language file. Try to keep them alphabetically named, as D365FO stores them in Alphabetical sequences. Save and close the file. Right click on the label file and select 'Open with XML editor': This shows all the Labels created for this label file.  Find/search for the labels that you created. Ideally, all your newly created files would be clubbed up at one place, if you have named them alphebetically. Copy them and paste them to all

Updating Default dimensions -- the best possible way

Image
  Ever come across a situation, where you needed to update the default financial dimensions, runtime? Suppose you have sales lines, and they dimensions like [Costcenter-purpose-department-Employee]. There is a requirement, that asks you to update: depending on certain situations, the dimension code on 'Purpose' needs to be changed. This sorta requirement is quite common, and I bet you have confronted several situations like this, before. Even a few versions of D365FO this, was damn easy. There was this function, which can let you change twitch between any Fin. dimension values:  ledgerDimensionDefaultFacade::serviceReplaceAttributeValue(SalesLine.DefaultDimension, InventTable.DefaultDimension, DimensionAttribute::findByName("ProdLine").RecId); But this method has changed and it looks like the following: dimension = LedgerDimensionDefaultFacade::serviceReplaceAttributeValue(                         _defaultDimension,                         _dimensionDefaultMap.Default