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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Getting all the field values

(0) ShareShare
ReportReport
Posted on by 436

Hey everyone, I want to ask that how can we use .get method without having the primary key. For example, if I want to enter a value in any field from the field of another table how can I do that? Make sure that I don't have the primary key. Kindly help

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Hi,

    you can use like below

    var

       Customer: Record Customer;

       Text000: Label 'Customer was found.';

    begin

       If Customer.GetBySystemId('{5286305A-08A3-E911-8180-001DD8B7338E}') then

       Message(Text000);

    end;

    learn.microsoft.com/.../devenv-get-find-and-next-methods

  • Suggested answer
    pankaj.k Profile Picture
    1,020 on at

    Hi Muhammad,

    if you don't have primary key Connection then you need to use Setrange & Serfilter and connect both table with the Setrange and Setfilter Method. 

    Please check the below link for how to use Setrange & Setfilter Method.

    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-setcurrentkey-setrange-setfilter-getrangemin-and-getrangemax-methods

  • Muhammad Anas Naeemi Profile Picture
    436 on at

    Hey Nitin, it worked. Thank you so much.

  • Muhammad Anas Naeemi Profile Picture
    436 on at

    Thanks for your response. My issue is resolved. I hope your answer was also right but I didn't checked.

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Sound good.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 677 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 521 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 306 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans