Monday 18 March 2019

Create new custom entity

Data Entities in Microsoft Dynamics 365 Finance and Operations are much like target entities in AX2012. There are the various loads that come pre-built out of the box for you to use at go-live and then potentially even after go-live. However you can also built custom entities and utilize them for data import/export purpose. In this Blog I am going to demonstrate steps for creating custom data entity and using it to import data from excel file.
Creating Custom Data Entity:
  1. In Visual Studio, on the project that you have created Click-Right, and then click Add > New Item. The Add new Item window will open. Select Data Entity and set relevant name.
     2. On clicking Add, the Data entity wizard will show up. Specify the properties for the data entity and click Next.             You can also use the properties that are shown in screen shot below:
3. Select all or any number of fields from primary data source that appears on the following window.
         4. On clicking Finish, a data entity and staging table will be added to your project.
    5. Build your project so that your Custom Data Entity will show up on Data Entity screen at D365FO dashboard.

Importing Data from Excel:
After creating data entity, you can now import the data from excel file that you have created.
  1. Go to user dashboard and click Data Management.
2. In Data Management workspace click Import tile.
         3. Import Job page will show up on clicking Import:
   4. Set any relevant job name, Excel in source data format, name of the entity that you have created by above              steps in Entity name.
5. Click Upload and select the excel file that you created.
6. Once the file is uploaded you will see that entity is added in middle section.
    7. You might receive an error message that few fields are not mapped correctly between the source file and target             entity.
8. Clicking view map will open the screen (similar to one below). You can correct the mapping of source fields                 that might not be mapped to target fields.
    9. Once fields are mapped correctly, click Import button on top of the Import Job page.
10. After the import is completed, the job execution summary page will open showing that data is imported                       successfully.

Creat a Extension of data entity

Creat a Extension of data entity

Add a new field from DataSource of Entity to Fields Section (Just drag and drop)


Right Click Data Entity and Field Corresponding Staging Table. here its CustCustomerV2Staging

Im Extending this to add new field from custTable.


Drag and drop your custom field from CustTable to below Staging table.



Now Build and Sync the Project, Data Entity is good for import and export with new custom field.
Reference

If Custom fields in data entity not populating

1. Generate Mapping for new fields in Standard DataEntity

After Adding new field in Standard DataEntity in above steps-->

Go to DM--> Data Entities --> Search Data Entity --> Click on Modify Target Mappingfrom Action Tab --> Generate mapping

Reference

Refresh Data Entity

In Data Management Framework there are no Data Entities available. But entities are available in Application Explorer in Visual Studio.

Try the following: Open the Data Management workspace and click the Framework parameters tile. Switch to Entity settings and click the Refresh entity listbutton.

https://community.dynamics.com/ax/f/33/t/222835

Thursday 14 March 2019

DIXF in D365

https://www.youtube.com/watch?v=d777R7_BX6Q ( had 4 parts  explaining DIXF in D365

https://www.youtube.com/watch?v=GoYxeIvnr8g  -- LCS Package

How to migrate configurable data across legal entitites , across environments using Life cycle services.

How to add package to LCS and deploy them from LCS to dynamics D365 operations.

Go to my project under tools > Asset Library >> Data Packages >> Click new ( +) give name, desc, add file the file added should be data package exported. >> Confirm


Return to Project in LCS >> Tools >> Configuration and Data manager

We can view all data packages and you can find the new package added.


Select the package and click Apply >> you need to select the environment you want to deploy, then you need to select the entityt >> confirm.

Uses :

DIXF allow us to import and export with out writing any data.
It is useful for real time integration scenarios.
It is also useful for asynchronous integration.


DIXF Flow :




DMF Framework alway get a file from where we want to import / export. Those are stored in central storage which is in our application server and then transfered to DIXF Service which is Data import/export framework service. The service is windows service so it means if we want to use this service it should be available in our windows service. DIXF commutes with Data base server using SSIS.










Thursday 7 March 2019

Composite Entity creation For DIXF PO Import

https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/data-entities/develop-composite-data-entities

https://www.linkedin.com/pulse/dynamics-365-operations-composite-data-entity-sales-order-hirwani