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 :
Small and medium business | Business Central, N...
Suggested Answer

I can't pickup field County from a code lookup that refers to Post Code Table AL

(0) ShareShare
ReportReport
Posted on by
Hi,
AM trying to lookup field "county" from post code table using the code field so that after successfully picking the code field in my page the county field should populate from the post code table.
When I lookup the code field in my page, the break point sets its self on vscode on the line that's lookin up. And when I go back to BC page, my page hangs and displays a message "working on it". Below is an extract of my code.
pastedimage1599925366582v1.png
I need to pick the field county on page. Kindly assist?
I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    133 on at

    Primary key on that table is code and city. It hangs as it doesn’t have all the data to perform the get.

  • Suggested answer
    Jyotsna NAV Profile Picture
    585 on at

    Hi, 

    You can only GET primary keys. If you want to use other fields then SETRANGE and FINDFIRST (based on your scenario)

    Regards
    Jyotsna
    jyotsnanav.blogspot.com

    Don't forget to help the community by verifying my answer or at least like the suggestion if it did help in any way. It will let others know that the topic has a verified answer and was beneficial to you.

  • Romryan Profile Picture
    on at

    Josh,

    If a table has a composite keys as you have mentioned, how do I use code and city in get method so that I can pick the field County on a separate field after looking up the keys field(s). Am new in Busness Central/Nav.

  • Romryan Profile Picture
    on at

    Jyotsna,

    Am new in Nav/Business Central and am open to adopt you suggestion too. Will you mind giving an example?.

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,785

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,007 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 948 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans