Skip to main content
Business Central forum
Answered

ODATA Feed for Purchase Order Notes

editSubscribe (0) ShareShare
ReportReport
Posted on by 5

I am designing a Power BI report for summarizing Purchase Orders from Business Central.  The users are placing Notes on the Purchase Order but I can't seem to find a way to use an ODATA feed to retrieve these Notes.  Is there a web service that I can use to grab these notes from BC to use in a published Power BI report?

pastedimage1647979397343v2.png

Categories:
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 59,766 Super User on at
    RE: ODATA Feed for Purchase Order Notes

    Hi, I just tested it last week.

    But I am using the API. I created a new API page for record link first.

    pastedimage1647992874716v1.png

    Then you can get data by record id.

    Endpoint URL: https://api.businesscentral.dynamics.com/v2.0/d8f36038-1f93-4543-affc-5dc92b6ee871/Preview20/api/zy/app1/v2.0/companies(c32dda04-259a-ec11-bb89-6045bd8e52fe)/recordLinks?$filter=recordID eq 'Customer: 10000'

    pastedimage1647992942120v2.png

    PS: "RecordId" contains the table caption and primary key value of a record.

    More details: https://yzhums.com/21163/

    pastedimage1647993075291v3.png

    Hope this also helps.

    Thanks.

    ZHU

  • Verified answer
    MahGah Profile Picture
    MahGah 15,395 on at
    RE: ODATA Feed for Purchase Order Notes

    I believe it is not possible to have ODATA for those notes without any development. According to below blog "The answer is the notes are saved in binary format in a blob field (Note) in the Record Link table (2000000068) and the way it maps to the record is using Record ID." 

    See below picture and you can see it is no Page for Note to publish using ODATA. 

    You may need talk to developer to see if it is possible to create Query for notes then publish the query as ODATA. 

    http://www.navisionworld.com/2015/11/how-to-readwrite-notes-in-navision.html

    https://thinkaboutit.be/2019/03/how-do-i-use-record-notes-in-an-al-page-or-report/

    pastedimage1647980865000v1.png

  • Suggested answer
    JAngle Profile Picture
    JAngle 33,131 on at
    RE: ODATA Feed for Purchase Order Notes

    This should help you: thinkaboutit.be/.../

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Sundar…

Industry experts answer burning questions directly from our amazing Community…

Enabling Copilot Case and Conversation…

Agents can easily recap an ongoing chat, transcribe a voice conversation…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 282,978 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,562 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans