Posts

step 20 Update script for service model: AOSService on machine: CR-VM-Test-1

  Hi, Cause: This can be either happening because of timeout or files being temporarily blocked. A general approach to resolve this issue would be the following: 1. Restart the Environment and try deploying the package again. 2. If that doesn't work, restart the Services and try deploying the package again.  3. If that doesn't work and if you see the below-mentioned error in the Log file: The process cannot access the file 'K:\AosService\WebRoot\bin\Microsoft.Dynamics.ApplicationPlatform.XppServices.Instrumentation.dll' because it is being used by another process,  following the below mentioned Action Plan should resolve the issue. Action Plan: 1. Open a PowerShell prompt as Administrator 2. Navigate to <Services drive>\DeployablePackages\<Runbook ID>\AOSService\Scripts 3. Create a temporary directory for log files 4. Execute: .\AutoUpdateAOSService.ps1 -LogDir <Log directory from step 3>. (Will likely take 75-100 minutes to complete) 5. Once the manua...

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...

Get Item Image in WHS Mobile APP base on Unit

Image
 I have a requirement in which user want to see the item images based on unit wise  for that what i did i customize this form and add unit id( DSTUOM  field name in table ) their as discussed in Screenshot than whad i did  create extention of this class EcoResProductImage which code is  [ExtensionOf(tableStr(EcoResProductImage))] final class EcoResProductImage_DSTWMSIntegration_Extension {     protected static ImageReference getImageFrom2Records(Common _firstRecord, Common _secondRecord, EcoResProductImageSize _ecoResProductImageSize)// = EcoResProductImageSize::Normal)     {         ImageReference  ImageReferenceLocal,ImageReferenceTmp;         InventTable     InventTableLocal;         DSTWMSItemImageTmp  DSTWMSItemImageTmpLocal,DSTWMSItemImageTmpLocalV2;         ImageReferenceLocal = next  getImageFrom2Records(_firstRecord,_secondRe...

if want to change the title of WHS Mobile app

Class WHSMobileAppServiceXMLTranslator  we can extend this method as well  /// <summary>  /// Returns the page's title.  /// </summary>  /// <param name = "_pagePattern">The pattern of the page.</param>  /// <param name = "_pass">The pass</param>  /// <param name = "_controlsList">The control list.</param>  /// <returns>The page's title.</returns>  protected str pageTitle(WHSMobileAppPagePattern _pagePattern, WhsrfPassthrough _pass, List _controlsList)  {      if (_pagePattern == WHSMobileAppPagePattern::Menu)      {          return this.findFirstNonErrorControlLabel(_controlsList);      }      if (_pass && _pass.exists(#MenuItem))      {          return WHSRFMenuItemTable::find(_pass.lookup(#MenuItem)).rfTitle;      }   ...