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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

FormDataObject to DictField - different FieldIds when comparing to intrinsic function

(0) ShareShare
ReportReport
Posted on by 97

Hi community,

im confused as to why I get two different FieldIds for the same field.

public void jumpRefItemExtension_BEC(FormDataObject _dataObject)
    {        
        Common              callingRecord = _dataObject.datasource().cursor();

        SysDictField        dictField = new SysDictField(callingRecord.TableId, _dataObject.dataField());
        SysDictField        dictField2 = new SysDictField(callingRecord.TableId, fieldNum(InventTableExtension_BEC, ProductSubGroupId));

        info("(dictField) : "     dictField.name()    ' '   any2Str(dictField.tableid())      '.'   any2str(dictField.id())       ' value: '   callingRecord.(dictField.id()));
        info("(dictField2) : "    dictField2.name()   ' '   any2Str(dictField2.tableid())     '.'   any2str(dictField2.id())      ' value: '   callingRecord.(dictField2.id()));
        
        ...
    }

But both FieldIds lead to the same field and value:

pastedimage1633704547516v2.png

(note: _dataObject is initialized from jumpRef(FormDataObject _formDataObject) - method is executing when i click the value or right click field -> show details)

pastedimage1633704755761v3.png

Problem is, when I use the approach of getting the _dataObject.fieldId() i cannot compare it withthe intrinsic function fieldNum(...) because they dont match

Is this new in D365? Im pretty sure that wasn't the case in AX2012

Thanks!

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    301,510 Super User 2025 Season 2 on at

    Hi Raphael,

    There is a difference between the actual field number and an extended field number. The form data object is using the extended ID. There are functions to go from the actual field number to the extended number or vice versa. You can read about this here: docs.microsoft.com/.../extended-field-ids

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

News and Announcements

Season of Giving Solutions is Here!

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
Abhilash Warrier Profile Picture

Abhilash Warrier 763 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 284 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans