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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 23.12.2007, 17:51   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
axStart: What to do when AIF is not working and how to code:
Источник: http://axstart.spaces.live.com/Blog/...C0A0!210.entry
==============


When IAF is not working:
It can be something in IIS or something in AX. In general we can see this: When an external application is sending XML to AX and it is not working. Take a look at the Basic/Periodic/AIF/Exception. When an error line is generated your trouble is in AX, if you don’t get an error record your trouble is in IIS.
How do I trigger the AIF from my code?
static void aif_AxdAxFixedAsset(Args _args)
{
    AifActionId       actionId      = "readAxFixedAsset";
    AifEndpointList endpointList = AifEndpointList::construct();
    AifEntityKey     entityKey     = AifEntityKey::construct();
    AssetTable       ast               = AssetTable::find("B-0001");
    map                 keyData       = SysDictTable::getKeyData(ast);
    ;
    endpointList.addEndpoint(aifendpoint::find("files")); // menu Basic/Setup/AIF/End Points
    entityKey.parmRecId(ast.RecId);
    entityKey.parmTableId(ast.TableId);
    entityKey.parmKeyDataMap(keyData);
 
    AifSendService::submit(actionId, endpointList,entityKey,aifSendMode::Async) ;

}
 
The AIFSendService for B2B integration is triggered on the tables. Browse the AOT for the method sendElectronically and you will find all places.

AIF and update records:
With the release of AX 4.0 SP2 update on records is also possible. Take a look at the example [FONT='Arial','sans-serif']AxdAddress, there a new type is used called ProcessEntityList. With this list it is possible to update records.[/FONT] 


Источник: http://axstart.spaces.live.com/Blog/...C0A0!210.entry
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Dave: AIF Configuration and Additional Findings Blog bot DAX Blogs 1 04.11.2009 17:29
axStart: Enrich AIF with the power of offline working (roadmap) Blog bot DAX Blogs 0 07.05.2008 15:05
axStart: How to work with big projects with multi add-ons Blog bot DAX Blogs 0 30.12.2007 16:30
Говорят вышел SP2 для Axapta 3. Кто нибуть что знает на эту тему? soin DAX: Прочие вопросы 10 13.10.2003 10:43

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

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

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