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

How to validate the value is AOT object view or table?

(0) ShareShare
ReportReport
Posted on by 154

Hello,

I have a lookup form control which included tables and views.
I need to get the datasource and field from the properties of view field if the view was selected from the control.
I didn't found how to determine whether the value is a View or a table.


Any advice would be appreciated.

I have the same question (0)
  • Mohit Rampal Profile Picture
    12,565 Moderator on at

    Hi Akshi, I haven't tested it but since this article is looping menu items, you can probably leverage it to find if it's table or view.

    dynamicsnavax.blogspot.com/.../loop-through-aot-display-menu-items.html

  • Verified answer
    André Arnaud de Calavon Profile Picture
    303,085 Super User 2026 Season 1 on at

    Hi Akshi,

    You can use the DictTable and SysDictTable classes where you can use e.g. the method is View() to find out if the datasource is a view.

  • akshi Profile Picture
    154 on at

    Hi André Arnaud de Calavon,

    Thanks a lot for your help.

    I found that the method isView() of DictTable class.

    It worked fine for checking if it is a table or view.

    Please, note that this method also returns True for Data Entity.

  • André Arnaud de Calavon Profile Picture
    303,085 Super User 2026 Season 1 on at

    Hi akshi,

    There is also a specific method on the DictTable class called isDataEntity(). Technically, a view is created for a data entity. That explains why the method isView() is returning True for data entities.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 577 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 309

#3
Diego Mancassola Profile Picture

Diego Mancassola 259

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans