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?
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.
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
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.
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.
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.
André Arnaud de Cal...
291,965
Super User 2025 Season 1
Martin Dráb
230,836
Most Valuable Professional
nmaenpaa
101,156