I’ve been working on building a custom entity in Dynamics 365 Finance & Operations to support PowerApps integration via Dual-write. The main objective is to expose a curated set of fields from InventTable
and related tables, so records can be viewed, created, or updated from Dataverse (and vice versa).
Some of the key fields we want to expose include:
Item Number
(fromInventTable
)Product Name
(fromEcoResProductTranslation
)NameAlias
,Item Group
,Item Cost
, price, etc.- Custom attributes like
Manufacturer Name
(fromEcoResProductAttributeValueV3
) Procurement Category
,Project Category
, andProduct Lifecycle State
I’ve already structured the joins and confirmed that the entity reads data correctly in Excel and the OData feed.
Problem:
When attempting to create a new record via DMF or Excel Add-In, I get the following error:
Results. Field 'Product' must be filled in.
Results. validateWrite failed on data source 'InventTable (InventTable)'
This makes sense — Product
is a required link to EcoResProduct
, and I believe it’s typically autogenerated in the standard product creation logic (i.e., ReleasedProductV2Entity
). But I’m unclear on whether I need to generate this manually, or if I’m missing some setup/configuration in my entity.
My Questions:
- Does ‘Product’ need to be autogenerated in my custom entity? If so, how is that typically done in standard entities like
ReleasedProductV2Entity
, and can I replicate that? - Would it make more sense to extend
ReleasedProductV2Entity
and add my extra fields there? Or maybe Duplicate it since I don’t want to disturb any of the pre-existing entities.
- I notice many of the fields I need already exist in this entity, and I’d prefer not to reimplement everything.
- However, I want to make sure I’m not breaking or overwriting any standard behavior.
- If I continue with a standalone custom entity, is there a clean, supported way to generate the
Product
RecId on record creation? Anywhere I should be looking?