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 NAV (Archived)

FieldRef.RELATION fnction in Navision

(0) ShareShare
ReportReport
Posted on by

HI All,

I have a requirement to check the Relation details at run time.  But The FieldRef.RELATION only returns the table No but not the field details of related field.

Any idea how to get the field details also.

eg. The city field in customer table has a able relation in post code table with City field. The relation function returns only 225 not the fields details.
      RelationTableID := ToFldRef.RELATION;

Thanks in advance.

Regards

Bheem

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mohana Yadav Profile Picture
    61,005 Super User 2025 Season 2 on at

    Not sure exact requirement

    Check Function "GetRelationInfoByIDs" in Codeunit 8617 - Config. Validate Management

  • mmv Profile Picture
    11,471 on at

    hi,

    Please mention what all the field details you are expecting.

    Best Regards,

    MMV

  • mmv Profile Picture
    11,471 on at

    hi,

    As mentioned by Mohana, you will be able to get the related Table Number and also the Field Number.

    Best Regards,

    MMV

  • Bheem Singh Profile Picture
    on at

    Hi Mohana and MMV,

    Thanks.

    I am checking this and I hope I will work.

    Also,  found one another way to check into Field virtual table directly which contains all these details.

    Regards

    Bheem

  • mmv Profile Picture
    11,471 on at

    Hi,

    Did the above solution work for you?  Please verify the solution.

    Best Regards,

    MMV

  • Suggested answer
    Mohana Yadav Profile Picture
    61,005 Super User 2025 Season 2 on at

    I always prefer to use Standard NAV functions because they are properly tested and working fine in all scenarios.

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 NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans