Thank you so much this helps a lot! :)
Hi, yes, as I understand, this usercontrol cannot be executed without being added to the page.
So, unfortunately, you need to change the solution.
I'm sorry I haven't tried the below solution, but I think you can give it a try.
Using Azure Function to combine PDF.
https://powergi.net/2021/04/12/505-2/
https://www.sharepointeurope.com/merge-pdf-files-in-sharepoint-using-an-azure-function/
Using Azure Functions with Dynamics 365 Business Central
https://docs.microsoft.com/en-us/learn/modules/use-azure-functions/
https://ksdconsultancy.blog/2021/11/28/integrating-azure-function-with-business-central/
A ftp sample: https://demiliani.com/2021/12/07/dynamics-365-business-central-handling-files-via-ftp-on-saas/
Hope this also helps.
Thanks.
ZHU
yzhums is it possible to call the scripts/controlAddin from an eventsubscription?
I would need to merge documents right after the following event: OnAfterFinalizePostingOnBeforeCommit
I can't seem to make it work
Thank you so much in advance for your help!
Thank you very much!
Hi, .NET Interoperability is only available on-premise. If you want to use this functionality, you must set the "target": "OnPrem"
in the app.json
file.
More detials: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-get-started-call-dotnet-from-al
And if you want to merge PDF, here is an awesome Javascript solution. This can be used in SaaS.
Merge PDF in Business Central (linkedin.com)
GitHub - gonzaloriosley/Merge-PDF-Business-Central
Hope this will help.
Thanks
ZHU
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... 290,558 Super User 2024 Season 2
Martin Dráb 228,647 Most Valuable Professional
nmaenpaa 101,148