hello Guys,
I have created Custom API Page for Header and Custom API Page for Line of Purchase Header.
Also I have added Part( Line,"Custom API Page for Line") with EntityName in Custom API Page (header).
When I am calling Custom API Page for Header only get Header data not getting Line data in Result.
Guide/ Help me here,
Thanks in Advance
Hi, you can just use $expand.
For example, api.businesscentral.dynamics.com/.../salesOrders?$expand=salesOrderLines
More details: https://yzhums.com/6117/#toc13
Hope this helps.
Thanks.
ZHU
Hi,
Pls share your code.
Regards
Amit Sharma
www.erpconsultors.com
You can find that source code here:
Havee you tried to compare your code with the standard API for purchase orders?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,151 Super User 2024 Season 2
Martin Dráb 229,963 Most Valuable Professional
nmaenpaa 101,156