web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Dynamics 365 Vs Me / WorthKnowing: Adding system...

WorthKnowing: Adding system fields in data entity

Deepak Agarwal Profile Picture Deepak Agarwal 8,602
Hi Folks, 

System fields like CreatedBy, CreatedDateTime, ModifiedBy, and ModifiedDateTime appear in a D365FO entity’s metadata, but they don’t show up in exports or OData. This happens because system fields aren’t automatically exposed through the staging table.

To make them available, create wrapper fields with different names—such as CreatedBy1, CreatedDateTime1, ModifiedBy1, and ModifiedDateTime1—and map them to the system fields.

Steps
- Add the new fields to the staging table or its extension.
- Add them to the data entity and map each one to the corresponding system field.
- Build and synchronize the project.
- Export or call the entity via OData to confirm the fields appear.

This simple approach ensures audit fields are available for integrations, exports, and reporting.


-Harry Follow us on Facebook to keep in rhythm with us. https:fb.com/theaxapta

This was originally posted here.

Comments

*This post is locked for comments