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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 30.08.2013, 06:12   #1  
Blog bot is offline
Blog bot
Участник
 
25,626 / 848 (80) +++++++
Регистрация: 28.10.2006
emeadaxsupport: Outlook Contact Field Synchronization with Dynamics AX 2012 R2
Источник: http://blogs.msdn.com/b/axsupport/ar...x-2012-r2.aspx
==============

I recently ran across the need to expand fields that automatically sync from Dynamics AX 2012 R2 to Outlook contact records. It is a very time consuming and labor intense process to manually map fields on each Contact record selected for Outlook Synchronization.

Here is the scenario:

1. Business Fax is not a field synchronized from AX to Outlook through standard out-of-the-box mapping.

2. By default, the Outlook Contact card displays the Primary Number selected in AX but the Business Telephone Number field is not populated on the Outlook contact form. I want the Primary Telephone to show both on the Outlook Contact card and form as the Business Telephone Number.



Solution:

The automatic field mapping can be customized by modifying the createFieldMapping method under the smmContactPersonSynchronizationFieldMapping table.

X++:
// Primary phone  - modified so Primary Phone field in AX syncs to the Business Telephone on the Outlook record
        if (syncDirectionValid(smmOutlookContactFields::PrimaryTelephoneNumber))
        {
            contactInfo = DirParty::primaryElectronicAddress(contactPersonEntity.getPartyRecId(), LogisticsElectronicAddressMethodType::Phone);
            if (contactInfo)
            {
                _contactFieldRecordMap.insert(smmOutlookContactFields::BusinessTelephoneNumber, contactInfo);
            }
        }

 // Business Fax - this section added so Business Fax will automatically sync with the corresponding Outlook contact field
        if (syncDirectionValid(smmOutlookContactFields::BusinessFaxNumber))
        {
            contactInfo = DirParty::primaryElectronicAddress(contactPersonEntity.getPartyRecId(), LogisticsElectronicAddressMethodType::Fax);
            if (contactInfo)
            {
                _contactFieldRecordMap.insert(smmOutlookContactFields::BusinessFaxNumber, contactInfo);
            }
        }
End Result:




Of course, this may not meet your specific needs but it provides an example of what is possible through a little customization.




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

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
emeadaxsupport: New and updated content is available for cumulative update 6 for Microsoft Dynamics AX 2012 R2 Blog bot DAX Blogs 0 27.06.2013 19:11
DAX: How to gain additional value from the Microsoft application platform with Microsoft Dynamics AX 2012 R2 Blog bot DAX Blogs 3 21.06.2013 15:16
emeadaxsupport: New installable help AX 2012 R2 Blog bot DAX Blogs 0 21.02.2013 02:13
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 10 Blog bot Dynamics CRM: Blogs 0 17.08.2012 03:27
dynamics-ax: Modeling the world, with Microsoft Dynamics AX 2012 Blog bot DAX Blogs 0 25.01.2011 09:11

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

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

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