web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to send the pdf file using AIF service

(0) ShareShare
ReportReport
Posted on by

Please let me know to create a AIF service to send a PDF file to third party application.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    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.

  • Community Member Profile Picture
    on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans