AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 22.01.2014, 02:14   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
goshoom: Creating sales orders via AIF in AX2012
Источник: http://dev.goshoom.net/en/2014/01/sales-orders-via-aif/
==============

I was asked for an example how to create a sales order through AIF document services (SalesSalesOrderService). Here is my minimalist variant in C# (for AX2012 and demo data):

var line = new AxdEntity_SalesLine(){ ItemId = "D0001", SalesQty = 42, SalesUnit = "ea"}; var order = new AxdEntity_SalesTable(){ CustAccount = "US-003", PurchOrderFormNum = "xyz", ReceiptDateRequested = DateTime.Now.Date, SalesLine = new AxdEntity_SalesLine[] { line }}; var orderList = new AxdEntity_SalesTable[] { order };var callContext = new CallContext() { Company = "USMF" };var client = new SalesOrderServiceClient(); try{ client.create(callContext, orderList); client.Close();}catch{ client.Abort(); throw;}
It doesn’t have to work for you out of the box (for example, you may have additional fields required by the contract), but it should give you an idea how it looks like, without adding unnecessary complexity.

If you’re not familiar with AIF document services, you may want to look at AX 2012 Documentation Resources for AIF and Services.



Источник: http://dev.goshoom.net/en/2014/01/sales-orders-via-aif/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
atinkerersnotebook: Walkthrough & Tutorial Summary Blog bot DAX Blogs 1 09.09.2013 09:11
ax-erp: Processing Business Tasks - Posting sales orders Blog bot DAX Blogs 0 06.11.2012 21:12
ax-erp: Creating sales orders with the SalesAutoCreate class Blog bot DAX Blogs 0 09.10.2012 17:11
dynamicsaxtraining: Sales Blog bot DAX Blogs 0 25.04.2012 03:18
Arijit Basu: Creating Sales Orders via X++ Blog bot DAX Blogs 0 04.08.2007 19:50

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 20:04.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.