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...
Answered

Relation to Object Table in table extension

(0) ShareShare
ReportReport
Posted on by 194

Hello,

In a table extension I am adding a new field which I want to have a relation to the "Object" table from the base application:

 TableRelation = Object.ID WHERE(Type = CONST(Report));

But here I get the following error:

"The type or method "Object" cannot be used for "Extension" development."

What am I doing wrong?

I have the same question (0)
  • Suggested answer
    THE Italian Profile Picture
    on at

    Table Object cannot be used for Extension target (aka Cloud target). You could only use Object table in Internal target (aka OnPrem target). 

    Target parameter is defined in the app.json file. 

    Maybe you could use AllObjWithCaption instead.

  • Verified answer
    THE Italian Profile Picture
    on at

    something like...

               TableRelation = AllObjWithCaption."Object ID" WHERE("Object Type" = CONST(Report));

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,116

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 764 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 635 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans