How to Import Records from Excel Using X++ Code in D365FO

  How to Import Records from Excel Using X++ Code in D365FO   Include the below namespace in X++ code it will requires to import Excel. Using System.IO; Using OfficeOpenXml; Using OfficeOpenXml.ExcelPackage; Using OfficeOpenXml.ExcelRange;   In addition to the basic reference, include (Directory and DirectoryUpgrade Packages) X++ Code: Using System.IO; Using OfficeOpenXml; Using OfficeOpenXml.ExcelPackage; Using OfficeOpenXml.ExcelRange; class ReadExcel {   public static void main(Args _args)    {     Int id;     Str Name;      System.IO.Stream stream;       ExcelSpreadsheetName sheet;              FileUploadBuild fileUpload,fileUploadBuild;       DialogGroup dialogUploadGroup;       FormBuildControl formBuildControl;   ...

D365 FO :ENABLE MAINTENANCE MODE FOR LICENSE CONFIGURATION

D365 FO :ENABLE MAINTENANCE MODE FOR LICENSE CONFIGURATION


In D365 FO ,  For change settings in License configuration have to enable maintenance  mode.

By default it is turned off. But you can easily enable the maintenance mode in development environment.  For SAT and Production need to submit service request.

 

Two ways we can enable maintenance mode and edit license configuration :

1.       Run the  below SQL query on transaction database of environment(AxDB)

 After executing the query, restart the environment.   

    

 update

 dbo.SQLSYSTEMVARIABLES
 set dbo.SQLSYSTEMVARIABLES.VALUE = 1
 where dbo.SQLSYSTEMVARIABLES.PARM = ‘CONFIGURATIONMODE’

 

2.      Take RDP and Run command prompt as administrator.

 Execute below command in CMD.

 

K:\AosService\PackagesLocalDirectory\Bin\Microsoft.Dynamics.AX.Deployment.Setup.exe –metadatadir K:\AosService\PackagesLocalDirectory –bindir K:\AosService\PackagesLocalDirectory\Bin –sqlserver . –sqldatabase axdb –sqluser <SQL admin user id> –sqlpwd <SQL users password> –setupmode maintenancemode –isinmaintenancemode true

 

Comments

Popular posts from this blog

D365 FO: REFRESH CALLER FORM DATA SOURCE FROM A CLASS X++

Passing Args from one Form to another Form in dynamics AX

CREATE AND POSTING PURCHASE ORDER THROUGH X++ DYNAMICS AX