[Extensibility enhancements] Purchase Credit Memo API page (`table 124 "Purch. Cr. Memo Hdr."` and `table 125 "Purch. Cr. Memo Line"`)
Expose table 124 "Purch. Cr. Memo Hdr." and table 125 "Purch. Cr. Memo Line" via separate API pages.
Similar to SalesCreditMemLines.Page.al on the sales side and taking into account location code issue https://github.com/microsoft/ALAppExtensions/issues/11818
@JesperSchulz @onbuyuka Could this please be added in a minor release also? How often are minor releases?
Extensibility Enhancement request sent to our application integration experts. They will get back to you :-)
Please vote for this idea https://dev.azure.com/dynamicssmb2/Dynamics%20SMB/_workitems/edit/303135
I don't think that link is accessible to our community. I believe the link Anders meant to post, was the following ideas link: https://experience.dynamics.com/ideas/idea/?ideaid=19bfce36-533f-e911-867a-0003ff68cb2d
However, that idea seems to be in status "declined" and I'm hence not sure if that's the link either. @AndersLarsen65, could you revisit this issue please?
Regardless of the above, this doesn't seem like an issue we want to do as an extensibility enhancement. Please use bcideas instead. Closing issue.
@JesperSchulz I'm sorry but this is basic functionality to create the document. How are we supposed to do this?
@JesperSchulz The issue you referred to was "declined" in 2019, even before APIv1 was released.
Many items in that issue were implemented since 2019 in APIv1, like Reading and creating Sales Documents and Reading and creating Purchase Documents.
So how is it that 1) sales documents can be created, 2) sales credit memos can be created, 3) purchase documents can be created in APIv2, but purchase credit memos cannot?
And this is also directly related to https://github.com/microsoft/ALAppExtensions/issues/11818
@JesperSchulz @onbuyuka Guys, please address this. This really doesn't make any sense.
You just added APIV2Locations.Page.al in 18.1 per our request.
Also APIV2SalesInvoices.Page.al, APIV2SalesCreditMemos.Page.al, and APIV2PurchaseInvoices.Page.al exist for a long time.
Yet you refuse to add APIV2PurchaseCreditMemos.Page.al. What the logic behind this?
@kyrylkov Sales and purchase documents are different in design than locations API. You can check the code yourself, in contrast to locations, purchase document APIs require more work and cannot be handled through a simple bug fix. That's why we kindly ask you to create an idea through https://experience.dynamics.com/ideas/, and if we see that idea gets enough attraction we can add it to our scope and future plans. In the meantime if you have an urgent need for Purchase Credit Memos APIs you can consider developing your custom API. Here is the documentation for that: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-develop-custom-api
@onbuyuka Onat, thank you for your comments. You didn't address my main point. You do have purchase documents already. Namely Purchase Invoice APIV2PurchaseInvoices.Page.al. The only one which is missing is Purchase Invoice reversal - Purchase Credit Memo.
I don't understand how it is signifincantly more complex than adding a completely new locations page. Both are non-breaking changes extending, but not breaking, existing functionality of APIv2.
@kyrylkov You can check how the Sales Credit Memo API is implemented and how it is different from Sales Invoice API. You'd notice that source table is a buffer table, and there is a logic behind it since it combines Sales Header and Sales Credit Memo Header. We'd need to use the same design for Purchase Credit Memo API too, which requires upgrade code to copy records from Purchase Header and Purchase Credit Memo Header. This not a question of breaking, it is a question of time and investment.
@onbuyuka Onat, I really appreciate the explanation.
Let me add where we stand here. I hope we both agree Purchase Credit Memo is one of the most basic pieces of functionality.
We integrate with multiple accounting and ERP solutions and in ALL, but D365BC, creating a vendor credit memo, means calling a REST endpoint or a SOAP op. In D365BC, unfortunately, it means becoming experts in proprietary language (AL), creating pages, tables, writing AL code, deploying it to customer, and maintaining all that over time. In short, the barrier of entry is extremely high, which discourages developers from building D365BC solutions.
At the same time D365BC probably has tens of thousands of clients and hundreds of companies interested in integrating with D365BC. A large share of these clients and integrators probably require such basic functionality as Purchase Credit Memo via API.
It would take Microsoft x days (a week or two I assume) to implement this feature into the API. But refusing to do it, means forcing hundreds of clients and integrators to spend 10x more time individually and 1000x more time collectively to re-implement the same basic functionality over and over again. Why? Because you're the experts in AL while most D365BC clients and potential integrators (including ourselves) are not.
When our clients plan upgrades from Xero or QuickBooks to an ERP, we cannot recommend D365BC to them because the barrier of entry to implement basic functionality using API is so high.
I understand that this is a business matter of allocating time and resources, but it looks like this will greatly benefit D365BC ecosystem. I cannot speak for others, but we will have to stop development of our D365BC integration, until the API is improved.
I hope you can draw attention of your program manager to this issue. I will be happy to provide futher feedback if required.
Thank you for your support.