Please let me know to create a AIF service to send a PDF file to third party application.
*This post is locked for comments
Please let me know to create a AIF service to send a PDF file to third party application.
*This post is locked for comments
Are you sure you want to use AIF? Could you provide more information about your requirement?
This blog shows you how to encode/decode files to base64 format, which you can then include as text in an xml file: devblog.sertanyaman.com/.../using-base64-for-file-transfer-in-ax-2012
AIF is always based on AX tables and queries, so you need to create an AIF interface that is based on a query. Then you can create a virtual field in your XML field and put the base64 encoded PDF there.
For example, if your AIF interface uses CustInvoiceJour as a data source, you can add a new parm method in axCustInvoiceJour class, and write your code there, to attach the invoice in PDF format. The receiving party of this file must then decode the base64 string back to PDF.
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,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156