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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 19.08.2009, 18:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,617 / 848 (80) +++++++
Регистрация: 28.10.2006
emeadaxsupport: Problems when trying to update a certain field with AIF
Источник: http://blogs.msdn.com/emeadaxsupport...-with-aif.aspx
==============

Recently I tried to setup AIF in standard AX 2009. The purpose was to send service orders electronically with AIF, in XML-format and sending it back to AX in order to update the field StageId of the specific service order.



I had managed to send the service order as a XML-file to the outbound map, but I had a problem in reading in the XML in order to update the StageId of the ServiceOrder.
This resulted in an error in AIF Exception log:
The parameter index is not valid.

This is because the update xml message did not contain part

so in this way AIF has no idea which record has to be updated. This is because by adding the searching criteria we enable AIF to search which record should be updated.
This can be solved by adding EntityKeyList tag to xml document



ServiceOrderId
000324_167





The other problem is that when you look into table SMASalesOrderTable you can find out that field StageId had been set up AllowEditOnCreate: No, which does mean that even using AIF you won't be able to update this field, as kernel will abandon it.
As you can see in referenced link (Update Action Rules in AIF), full update is deleting and creating new record with new data. So if it is not allowed by data structure to change field during edit or create then AIF will not behave differently.
In our case I could create new operation which will update field StageId in a way to run all needed business logic behind (similar than class SMAStageEngine. Of course there is needed some code changes) and then add it to service.


To learn more how to create new operation please refer to How to add a Service Operation to a Service



Источник: http://blogs.msdn.com/emeadaxsupport...-with-aif.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Dave: AIF Configuration and Additional Findings Blog bot DAX Blogs 1 04.11.2009 17:29
CRM DE LA CREME! Microsoft CRM 4.0 Update Rollup Best Practices Blog bot Dynamics CRM: Blogs 0 18.08.2009 11:05
emeadaxsupport: AxUpdatePortal.exe does not update Enterprise Portal when not running from an elevated command prompt Blog bot DAX Blogs 0 26.07.2009 15:07
Microsoft Dynamics CRM Team Blog: Update Rollup 2 for Microsoft Dynamics CRM 4.0 - More Info Blog bot Dynamics CRM: Blogs 0 12.02.2009 13:05
Dianne Siebold: Rec Fields Required in AIF Partial Update Blog bot DAX Blogs 0 20.01.2009 09:05
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 00:18.