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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Using AIF to place an Invoice in XML format to a folder

(0) ShareShare
ReportReport
Posted on by 830

Hi,

I'm trying to use the AIF to place all invoices from a specific customer into a folder which I have set up but I seem to be having some difficulty, as when I raise an invoice from a sales order, it doesn't appear in my folder. I'll show you the steps I have taken:

1) Basic > Setup > AIF

2) Set Transport adapter to FileSystemAdapter

3) Created a channel, direction outbound, active and set the address where I want the file to be place: c:\axInvoices\myCustomer\

4) Enabled the SalesSalesInvoiceService

5) Endpoint, created a new one for this customer and set the constraint ID to the customer account

6) Added the .read action and enabled it, set the output fields I want to be output from data policies.

Am I doing this wrong or what am I missing out here? Because when I raised an invoice from the Sales Order my folder location was empty?

 

Any help would be appreciated! Thanks.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    236,320 Most Valuable Professional on at
    Re: Using AIF to place an Invoice in XML format to a folder

    The message is not sent automatically, it's just queued. What you need is to run few AIF batch jobs.

  • BiffBaffBoff Profile Picture
    830 on at
    Re: Using AIF to place an Invoice in XML format to a folder

    I've setup a batch job to run in 15 minutes, I added the AifGatewaySendService and AifOutboundProcessingService as tasks. I think that's correct? I'll let you know if it runs successfully..

  • BiffBaffBoff Profile Picture
    830 on at
    Re: Using AIF to place an Invoice in XML format to a folder

    No this didn't seem to run, I did set the status to waiting too, as suggested in the article you linked

    Edit: I checked the Batch Job History for that batch job and it didn't seem to run for some reason? The only reason I can think of is that there was nothing in the queue? Which means my settings must be wrong, not sure what though

  • dolee Profile Picture
    11,279 on at
    Re: Using AIF to place an Invoice in XML format to a folder

    When you setup the batch job, are they in a specific batch group?

    Have you check the server setting that this particular batch group is handled by one (or more) of the AOSes?

  • BiffBaffBoff Profile Picture
    830 on at
    Re: Using AIF to place an Invoice in XML format to a folder

    It seems that invoices don't get added to the queue, I checked the queue manager under periodic and my test invoices weren't there even though I didnt check the "Print Invoice" box when I posted an sales order to invoice?

  • Paul Topham Profile Picture
    175 on at
    Re: Using AIF to place an Invoice in XML format to a folder

    Callum:

    did you ever resolve this issue?  if so, can you share your steps with me?

  • BiffBaffBoff Profile Picture
    830 on at
    Re: Using AIF to place an Invoice in XML format to a folder

    Hi Paul,

    Yes I did, you have to make sure that when you're creating the invoice, that you're not printing to screen. So you go to printer setup in the posting form and select any option other than Screen. The Invoice should then appear in the Queue Manager ready for processing via a Batch Job

  • Paul Topham Profile Picture
    175 on at
    Re: Using AIF to place an Invoice in XML format to a folder

    Thanks Callum:

    And your other steps are as listed in your initial post?

  • BiffBaffBoff Profile Picture
    830 on at
    Re: Using AIF to place an Invoice in XML format to a folder

    Yup, you just then have to set up the batch job to process the queue and then it'll output the xml into the desired folder

  • Dick Wenning Profile Picture
    8,705 Moderator on at
    Re: Using AIF to place an Invoice in XML format to a folder

    you need 2 batches, but have a look at youtube

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

#2
NNaumenko Profile Picture

NNaumenko 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans