New resources available on Microsoft Learn
Did you know that Microsoft Learn offers free training modules to assist you on your path to mastering Dynamics 365 for Finance and Operations? Become an expert at your own pace or share with your team to foster growth.
Dynamics 365 2019 release wave 2 plan Discover the latest updates to Dynamics 365.Release Plan | Weekly Deployment Notes
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants.Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements.
ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Talent TechTalks
I have created one new customized entity with new custmized table
In this table i have relation with hcmworker - hcmworker.recid == customizedtable.salesresponsible
Now when i create dataentity i have selected hcmworker table and removed datasource dirperson
then created new entity and build and synchronize
then i did export then records got exported
downloaded the file and when i open i am getting personnel number where i can see that salesresponsible field is invisible in excel because it is having property - private in data entity field
now when i am importing the new record i am giving personnel number then it is getting assigned to new record to my customized table.
But my problem is when i am updating the existing record and giving new personnel number that is not getting update.remaining fields are updating.
Dear experts please provide some solution on this.
Have a great day.
Yes the answer were able to solve but for sales responsible is that standard way to write in updateentitydatasource to update data for int64 fields.in standard sales order header entity I donot find any code for sales responsible.
Can you please tell me how the standard is working.
Which standard entity you are referring ?
Sales order header entity
Getting Recid is correct behavior during export . If you want name then you have to write custom code in MapdatasourcetoEntity. You can take a look at example in standard application using metadata search.
For mappedEntityToDatasource - yes that's a correct way . You can get personnel number from staging table and then find proper value and assign to sales responsible . Refer below links to see examples.
Ok .. Because its a private field its not going to update automatically . You have to write custom logic in mappedEntityToDatasource method to assign proper value to your field and then famework will take care of the rest of the things . You said your entity is custom then why cant you change read only property ?
Any one of those method is fine .
Use following syntax
if (_dataSourceCtx.name() == dataEntityDataSourceStr(caaHRMWorkerEntity, HcmPositionDetail))
HcmPositionDetail positionDetail = _dataSourceCtx.getBuffer();
Business Applications communities