Posts

Showing posts from June, 2025

Which code segment should you add to the form initialization method in D365 fo

 PBIReportHelper.initializeReportControl method is used to embed a Power BI report (.pbix resource) in a form group control Add analytics to workspaces by using Power BI Embedded - Finance & Operations | Dynamics 365 | Microsoft Learn

detour issue Fields is not showing in custom Process in d365 fo x++

Image
 https://devdojo.com/blascogasconiban/whs-mobile-detour-not-loading-fields

Cancel salesline through code in D365 FO X++

  static void cancelSalesLine(Args _args) { boolean updated; SalesLine salesLine; try { ttsBegin; salesLine = SalesLine::findInventTransId('012411', true); updated = SalesUpdateRemain::updateDeliveryRemainder(salesLine, 0, 0); if(updated) { info("Salesline canceled"); } ttsCommit; } catch { error("SalesLine could not be canceled"); } }

How to force Dimension Display? in D365 FO x++

  In the class -->InventDimCtrl_frm, method → parmDimParmVisibleGrid, if the required field is set to “True”, then it affect all the users. InventDimParm parmDimParmVisibleGrid(InventDimParm _dimParmVisibleGrid = dimParmVisibleGrid, boolean _overRideUserSetup = false ) { overRideUserSetup = _overRideUserSetup; if (this.sysLastValueExist() && !overRideUserSetup) return dimParmVisibleGrid; dimParmVisibleGrid = _dimParmVisibleGrid; dimParmVisibleGrid.InventSerialIdFlag = true; return dimParmVisibleGrid; } the code i done is   public InventDimParm parmDimParmVisibleGrid(      InventDimParm   _dimParmVisibleGrid,      boolean         _overRideUserSetup)  {      InventDimParm  dimParmVisibleGrid   = next    parmDimParmVisibleGrid(_dimParmVisibleGrid,_overRideUserSetup);               dimParmVisibleGrid.InventSiteIdFlag...