Skip to main content

Notifications

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

  • Suggested answer
    Mohana Yadav Profile Picture
    60,232 Super User 2025 Season 1 on at
    RE: FieldRef.RELATION fnction in Navision

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

  • mmv Profile Picture
    11,469 on at
    RE: FieldRef.RELATION fnction in Navision

    Hi,

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

    Best Regards,

    MMV

  • Bheem Singh Profile Picture
    on at
    RE: FieldRef.RELATION fnction in Navision

    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,469 on at
    RE: FieldRef.RELATION fnction in Navision

    hi,

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

    Best Regards,

    MMV

  • mmv Profile Picture
    11,469 on at
    RE: FieldRef.RELATION fnction in Navision

    hi,

    Please mention what all the field details you are expecting.

    Best Regards,

    MMV

  • Verified answer
    Mohana Yadav Profile Picture
    60,232 Super User 2025 Season 1 on at
    RE: FieldRef.RELATION fnction in Navision

    Not sure exact requirement

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

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics NAV (Archived)

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2

#1
mmv Profile Picture

mmv 2

#1
Amol Salvi Profile Picture

Amol Salvi 2

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans