Posts

Showing posts from May, 2023

Add reference group type field in data entity for import and export in d365

Image
 Add reference group type field in Data entity for import and export in d365 Sometime, we get requirement we need to add field in data entity which shows data in backend table as rec id and ID field in frontend. Example , there is one custom field sales category on sales order header, which save data in table as recid but it shows as Id field in front end.  1 > Add string data type field in sales order header V2 staging table extension. 2 > Add field in data entity SalesOrderHeaderV2Entity extension. 3 > Create extension class for table for SalesOrderHeaderV2Entity A > for import, can make extension for method mapEntityToDataSource() B > for export, can make extension for method postLoad() [ExtensionOf(tableStr(SalesOrderHeaderV2Entity))] internal final class SalesOrderHeaderV2Entity_Extension {     public void mapEntityToDataSource(DataEntityRuntimeContext _entityCtx, DataEntityDataSourceRuntimeContext _dataSourceCtx)     {     ...