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;       Dialog dialog=new Dialog("Excel Import using dialog");       dialogUploadGroup=dialog.addGroup("@SYS54759");       formBuildControl=dialog.formBuildDesign().control(dialogUploadGroup.name());    

Power BI with Dynamics 365 for Finance and Operations Using OData Connectivity to Create Power BI Reports


Step-by-Step: Use OData Connectivity to Create Power BI Reports

Start Power BI Desktop and click “Get data”:

Select “Online Services > Dynamics 365 (online)” and click “Connect”:

Enter the URL upto .com for your Dynamics 365 for Finance and Operations environment and append “/data” to the URL. Click “OK”.

In the window, you will select “Organizational account” in the left pane. You will have to “Sign in” using your Dynamics 365 for Finance and Operations credentials:

Once signed in, click “Connect”:

Power BI Desktop then connects to the OData feed of your Dynamics 365 for Finance and Operations environment, and listing off all entities available for reporting
The entities those property  marked as “IsPublic” to yes within Dynamics 365 for Finance and Operations.
This may take a few minutes to load.

In the Navigator window, you can search for specific entities 

If you click on an entity, you will be able to preview the data in the preview pane:

Once you have selected the desired entities, click “Load”:

Power BI Desktop will load the entities and their data:


Then, in the “Relationships” workspace of Power BI Desktop, you can create relationships between the entities:



You can work in the “Data” workspace of Power BI Desktop…






Comments

Popular posts from this blog

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

Customize SSRS report using extension in D365FO

CREATE AND POSTING PURCHASE ORDER THROUGH X++ DYNAMICS AX