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

Announcements

No record found.

News and Announcements icon
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
    303,667 Super User 2026 Season 1 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

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 613

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 455 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 292 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans