Notifications
Announcements
No record found.
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.
Thanks Nikolaos Mäenpää. its working fine for me.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2