Skip to main content

Posts

Importing License file in D365 F&O using CMD

  To import the attached license to your dev system, use the below command line. K:\AOSService\PackagesLocalDirectory\Bin\Microsoft.Dynamics.AX.Deployment.Setup.exe --setupmode importlicensefile --metadatadir K:\AOSService\PackagesLocalDirectory --bindir K:\AOSService\PackagesLocalDirectory --sqlserver . --sqldatabase AxDB --sqluser axdbadmin --sqlpwd [password for axdbadmin] --licensefilename c:\temp\[license file name].txt Microsoft.Dynamics.AX.Deployment.Setup.exe --setupmode importlicensefile --metadatadir C:\AOSService\PackagesLocalDirectory --bindir C:\AOSService\PackagesLocalDirectory --sqlserver . --sqldatabase AxDB --sqluser axdbadmin --sqlpwd 123456It --licensefilename C:\license\Flex_License.txt

Import DB backup from .BacPac file in D365 F&O using CMD

Hello Devs! This is one of the most quickest way to import DB from .Bacpac file. Bacpac files are those which are generated from Tier 2 or higher environments as a DB backup.   Alternate Approach ----> Using wizard Prerequisites: 1) Access to LCS folder Asset library --> Database Backup Incase you don't see the folder ask your project owner to give you the access. Step 1:  Download the file and save it in local non-user directory.  Step 2: - Services to be stopped World Wide Web Publishing Service Management Reporter 2012 Process Service Microsoft Dynamics 365 Unified Operations: Batch Management Service Microsoft Dynamics 365 Unified Operations: Data Import Export Framework Service - Download SqlPackage.Exe.  Download link :  https://learn.microsoft.com/en-us/sql/tools/sqlpackage/sqlpackage-download?view=sql-server-ver15 Extract it and Open CMD as admin.  Step 3 :  Navigate to directory where you have extracted the SqlPackage.Exe folder us...

Applying Service Updates to On-Prem Environment in D365 F&O

 Hello Devs! In case of On-Premises environments we need to apply service updates using CMD  and below are the series of steps and commands. Prerequisites: 1) Access to LifeCycle Services(LCS).  Step 1 :   Login to LCS, Check for the latest available service updates and download it. Download package and Unzip the package(Don't forget to unblock it before extracting, Right click and check unblock). Step 2 : Navigate to the folder where file has been extracted using CMD and Execute the below command to check for the installed versions of the services ServiceUpdate2 is my folder where I have extracted the file.  C:\ServiceUpdate2>AXUpdateInstaller.exe list Copy and save the output for future use, In my case it look like this Now, Edit  DefaultTopologyData file placed within the extracted folder.  Add those services which we have copied in last step and change the machine name(In my case its  VW-LAB-Dyndev1). Step 3 : We need to execute below ...

Compile Model in D365 using PowerShell Script

 Hello Dev! We have a scenario when we need to compile ISV solution that has been locked so in that case you build or compile that specific model using PowerShell scripts. Alternate approach is you can reference that model with you existing model and then build that model with "Build model with reference".  Script:   Note : FlexProperty is my model param ( [switch] $Incremental, [switch] $Ref, [string] $Metadata = "C:\AOSService\PackagesLocalDirectory", [string] $CompilerMetadata = "C:\AOSService\PackagesLocalDirectory", [string] $XRefSqlServer = "localhost", [string] $XRefDbName = "AxDB", [string] $ModelModule = "FlexProperty", [string] $OutPut = "C:\AOSService\PackagesLocalDirectory\FlexProperty\bin", [string] $XmlLog = "C:\AOSService\PackagesLocalDirectory\FlexProperty\BuildProjectResult.xml", [string] $Log = "C:\AOSService\PackagesLocalDirectory\FlexProperty\BuildProjectResult.log", [string] $...

Model import and export in D365 Finance and Operations using Powershell

Hello Devs! Whenever we have to move our code of specific model from one environment to another we need to export model and import it into another using model file via PowerShell. Below are the list of steps you need to perform for model export and import.                                                                Export Model File: 1) Open PowerShell in admin mode. 2) Change directory and navigate to bin folder using below command.   cd C:\AOSService\PackagesLocalDirectory\bin 3) Export the file using below command .\ModelUtil.exe -export -metadatastorepath=[path of the metadata store] -modelname=[name of the model to export] -outputpath=[path of the folder where the model file should be saved] In my case it look like this, Import Model File Pre...

Adding D365 F&O Extension in Visual Studio for development

 Hi Devs! This is a very common scenario when we comes across reinstallation of VS and Now the D365 extension has been vanished so for that below are list of steps needs to be done to enable extension for development. Prerequisites: Visual Studio should be installed before performing below steps.   Step # 1: Login to LCS (Microsoft Dynamics lifecycle services). In the main page after login there is a option of Shared asset library.   Step # 2: In the list of sub menus , Select Software deployment package and search for latest Service update Download it. Step # 3 : Once you have downloaded it. Unzip the folder and search  for  Microsoft.Dynamics.Framework.Tools.Installer in ServiceUpdate\DevToolsService\Scripts Example: Step # 4 : Follow the wizard and install .vsix file for 2019/2017 or any version to enable D365 extension for F&O. Note: You should have VS installed before  performing  above  steps.