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 :
Finance | Project Operations, Human Resources, ...
Answered

How to Edit Extend Table properties in the D365FO?

(0) ShareShare
ReportReport
Posted on by 1,215

Hi Guys,

i have a Extend table in the HCMPosition fields <PositionId>  is there by default mandatory "Yes" i need it set to "No"  for that in the TableExtension We can edit the XML file

What is the tag to change the mandatory property to No?

Regards,

Riyas Ahamed F

I have the same question (0)
  • Verified answer
    Blue Wang Profile Picture
    on at

    Hi Riyas,

    Some properties cannot be modified by extending the table, but you can change it by code.

    Please refer this thread:

    https://community.dynamics.com/ax/f/microsoft-dynamics-ax-forum/260201/modify-mandatory-property-on-existing-table-field-in-extension?pifragment-96834=1#responses

  • Riyas ahamed F Profile Picture
    1,215 on at

    Thanks for your replay Blue wang,  it is possible edit by XML? if yes let me know.

    regards,

    Riyas ahamed F

  • Verified answer
    Blue Wang Profile Picture
    on at

    Hi Riyas,

    Modifying XML can meet the needs, but that's not a reliable way

  • Verified answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at

    You can not change this to No using extensions. Certain properties are not extensible.   Modifying xml is not the correct way , Its  might work in your dev machine but its not going to work  in environments where you deploy binaries like prod or UAT.

  • Riyas ahamed F Profile Picture
    1,215 on at

    Thanks for your valuable Answer Sukrut,

    Currently, i am using Demo VM, so please let me know  What is the tag to change the mandatory property to No?

    it is my test purpose only.

    regards,

    Riyas ahamed F

  • Verified answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at

    Well , even if it is for test purpose i wont recommend you to  change XML  file. You can change it , if you just want to experiment see what it does or what impact it makes  and revert back .

    Another thing is  positionId is primary key in HCMPosition table and it is required to be filled in, so it does not make sense to make it non mandatory.

  • Verified answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    You can't change mandatory fields to not mandatory via extension. And as pointed out, in this case it's a field in the primary key so you could not enter more than one record in the table with empty position id.

    Another important point is that the standard functionalities trust that this field always has value. You would not want to break the system, right?

    Just use the Visual Studio to do the dev work. And don't try to "hack" your way around the system rules. I'm sure your customer wants a stabile system, not a system with hacks and broken functionality.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 559 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 464 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans