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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Insert Record with Specific RecId

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    You can't specify the RecId when inserting.

    What is your actual requirement, what do you want to achieve?

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    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]

  • Suggested answer
    Community Member Profile Picture
    on at

    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).

  • Suggested answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans