Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

AIF Document services

(0) ShareShare
ReportReport
Posted on by 2,985

HI All,

I am new to AIF concept,

To create/update  a customer & address in Ax from external application. 

Below are my questions:

1)Do I need to create  using two endpoints for customer and address?

2)Do I need to use staging table for this?

3)I need to add extra method to send the response or else by default there is an operation?

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,836 Most Valuable Professional on at
    RE: AIF Document services

    What do you mean by "Directly inserting the records into standard tables"? Here we're talking about inserting data through X++ classes of AIF, which handle all necessary business logic. That's clearly not inserting directly to tables.

  • Pravasti AK Profile Picture
    Pravasti AK 2,985 on at
    RE: AIF Document services

    ok, I go with the approach you suggested .One last question, Directly inserting the records into standard tables , will it create any issues in future

  • Martin Dráb Profile Picture
    Martin Dráb 230,836 Most Valuable Professional on at
    RE: AIF Document services

    The framework returns the list of created customers (yes, you can create mutliple customers at once).

    Taking the numbers them in messages to users (possibly localized to users' language) is reponsibility of the client applicaition. Isn't not what AIF should do.

  • Pravasti AK Profile Picture
    Pravasti AK 2,985 on at
    RE: AIF Document services

    Let me explain in detail,

    For Creating a customer,

    After generating the wsdl url , third party applications will send the details of the customer by selecting the create operation in the schema and mapping required fields.

    After creation of a customer in AX , it should say 'customerXXX is created' - How to send the message to them .

    Is by default it will return the customer number.Where I  can able to find the return statement.

  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 230,836 Most Valuable Professional on at
    RE: AIF Document services

    1) It depends on whether you use a single document contain both customers and their addresses, or separate documents for customers and addresses. I don't remember AX 2009 in detail, but I believe that the standard document services for customers includes the primary address as well.

    2) Document services don't use staging tables, therefore no, you don't need that.

    3) As I already told you before, the operations do return responses. Rather than asking the same questiion again, you should rather tell us what you're trying to achieve and what kind of problem you have with it. We can't give you a solution if you don't tell us what you need.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,836 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans