Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

How to Retrieve Your Reference column on Posted Purchase Documents using OData V4

Posted on by 38

Hello everyone,

I am working on a desktop application in .NET (C#) that interacts with OData V4 endpoints of Dynamics NAV version 2018.

I am creating an Unposted Purchase Invoice using the Page 6404 (Workflow Purchase Documents). There is a field called Your Reference which I use to store some unique ID that helps us track the document when posted and creating payments for it. The Your Reference field is not directly shown to user in NAV Role Tailored Client; however, it can be seen by using the Help -> About this Page -> Table Columns section.

I can see when invoice is posted, the Your Reference field remains the same which would serve our purpose. But I have issue retrieving that column from any of the default pages of Dynamics NAV OData V4 endpoints for posted documents. I have tried:

Object Type, Object ID, Object Name

Page, 188, Posted Documents without incoming documents

Page, 138, Posted Purchase Invoice

Page, 146, Posted Purchase Invoices,

Query, 130, Posted Docs. With No Inc. Doc.

I was wondering is that field available on any default endpoint, or does it need development in Dynamics NAV to expose that column? Thanks for your help

  • Amir Deris Profile Picture
    Amir Deris 38 on at
    RE: How to Retrieve Your Reference column on Posted Purchase Documents using OData V4

    ok. Thank you for confirmation.

  • Suggested answer
    JAngle Profile Picture
    JAngle 33,159 on at
    RE: How to Retrieve Your Reference column on Posted Purchase Documents using OData V4

    Not generally available and would require development to add it

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans