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

Clarification in find and exist method

(0) ShareShare
ReportReport
Posted on by 276

Hi team,

 

I always get confused between these two methods. 

 

What I understood..

 

1. find() - for example 

 

CustTable custTable;

custTable = CustTable::find("US-001");

if (custTable.RecId)
{
   info(strFmt("Customer name: %1",
               custTable.name()));
}
else
{
   info("Customer not found.");
}

 

We used to retrieved the data based on Customer number using find method.

 

 

 

2.Exist () - for example 

 

if (CustTable::exist("US-001"))
{
   info("Customer exists.");
}
else
{
   info("Customer does not exist.");
}

 

Here we basically checked wheather the Customer number is existed or not. It's return boolean true or false.

 

Is my understanding is correct?

 

Pls advise, thanks 

 

Categories:
  • Verified answer
    Subra Profile Picture
    2,686 Super User 2026 Season 2 on at

    Hi @CU29091230-0 

    Yes, Your understanding is correct.

    Additionally find method will return whole table buffer for a particaular record.

    Thanks,
    Subra

    If this helped, please mark it as "Verified" for others facing the same issue

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

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 266 Super User 2026 Season 2

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 217

#3
Subra Profile Picture

Subra 164 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans