23.12.2007, 17:51 | #1 |
Участник
|
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, напишите личное сообщение администратору. |
|
|
Опции темы | Поиск в этой теме |
Опции просмотра | |
|