Notifications
Announcements
No record found.
Hi All,
Is it possible to insert the record into the table with the specific Recid(given)?
I want to insert record into EcoResFloatValue.Recid based on the EcoResValue.Recid
*This post is locked for comments
You can't specify the RecId when inserting.
What is your actual requirement, what do you want to achieve?
Those tables are of type subclass-superclass, in other way referred as table inheritance in AX.
This means that a sub-level table record insertion must have a parent record from where the RecId is automatically inherited.
When you want to create a new entry, you do not directly put it in the sub-level, thus your question on how to manually insert RecId is not relevant, because you should never do that.
Relevant documentation:
[View:https://docs.microsoft.com/en-us/dynamicsax-2012/developer/table-inheritance-overview:750:50]
Hi Variam,
Microsoft handles RecId insertion and doesn't give control to the developers to change it. The EcoResFloatValue table extends the EcoResValue and therefore the framework will always set the same RecId (EcoResFloatValue.RecId & EcoResValue.RecId) for the record created in EcoResFloatValue table (there is only one record created).
In the fact there is only one record, not two records in this case.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2