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

Querying Extended Fields in an .AL API Extension

(0) ShareShare
ReportReport
Posted on by 15

I have a customer that has Extended the Sales Invoice Header table (112). I have an .AL API Extension that queries the data so that I can use it in an external application. I can not find the extended columns in the code windows.(tells me the column does not exist). I can see the data on their pages, and in the raw table=112 format, but I cannot find the columns to query them.

Any insights would be awesome.

Thanks

I have the same question (0)
  • I Gusti Made Ari Profile Picture
    3,600 on at

    You need to add reference/dependencies to the extension that has new field of the sales invoice header.

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-work-workspace-projects-references

  • bjohnson@anytimecollect.com Profile Picture
    15 on at

    Thanks, this so far looks like it will work for me. I am waiting on the customer to get me the .app file so I can reference it, but it all looks like this is what I need.

    Much appreciated

  • bjohnson@anytimecollect.com Profile Picture
    15 on at

    ok, so I finally got the .app file from the customer (we didn't write the extension). I added the dependency, and stuck the .app file in the .alpackages folder. app.json is throwing an exception that it could not be loaded (Object reference not set to an instance of an object), so I can't build my project, and I still can't access the extended columns. I really am a good programmer, but this is really stumping me. Not sure what I am missing.

    Any help is appreciated.

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 3,010

#2
Jainam M. Kothari Profile Picture

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

#3
YUN ZHU Profile Picture

YUN ZHU 1,085 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans