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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 01.09.2015, 17:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
emeadaxsupport: Every time an e-mail is sent through Outlook from AX, you are prompted with "Choose Profile"
Источник: http://blogs.msdn.com/b/axsupport/ar...file-quot.aspx
==============

In this scenario the user is running AX via Remote Desktop (Terminal Server), and they typically do not have Outlook running in the background. In this case whenever the user sends an e-mail from AX, Outlook is started, but they always prompted with the “Choose Profile” window to select a profile. In this window, you can click on Options, and select “Set as default profile. Unfortunately, setting this option does not stop the Choose Profile window from opening in the future. If Outlook is running they won’t be prompted for this, however as AX is a published remote app, they cannot start Outlook.

The issue is due to the following code: Class\Method – SmmOutlookEMail::createMailItem
At line 16: this call is made - outlookNameSpace.logon();

If you look at the following TechNet article you will see for Outlook 2010 and Outlook 2013 this will always cause the Choose Profile window to appear:

https://msdn.microsoft.com/en-us/lib...or=-2147217396

There is no need to make this call, as Outlook will still be initialized using the default profile the user has. The workaround is to just remote/comment out this line, see code below:

The issue is due to the following code: Class\Method – SmmOutlookEMail:: createMailItem
At line 16: this call is made - outlookNameSpace.logon();

12 try
13 {
14 outlook = new COM (#outlookapplication);
15 outlookNameSpace = outlook.getNameSpace(#mapi);
16 //outlookNameSpace.logon(); //This will not prompt to choose profile
17 folder = outlookNameSpace.getDefaultFolder(#olFolderInbox);
18 item = outlook.createItem(#olMailItem);
19 item.save();
20 storeId = folder.storeId();
21
22 if(item)
23 {
24 ret = true;
25 }
26 }






Notice:

"Microsoft provides programming examples for illustration only, without warranty expressed or implied, including, but not limited to, the implied warranties of merchantability or fitness for a particular purpose. This mail message assumes that you are familiar with the programming language that is being demonstrated and the tools that are used to create and debug procedures." This is not an officially tested solution by Microsoft and should be fully tested before implementation.

Thanks to the contributors James Wang & Thomas Treen




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

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
emeadaxsupport: AX Performance Troubleshooting Checklist Part 2 Blog bot DAX Blogs 0 09.09.2014 16:11
emeadaxsupport: Manufacturing Execution in AX 2012: Issue with the "Lock employee"-parameter Blog bot DAX Blogs 0 19.09.2013 18:11
emeadaxsupport: Outlook Contact Field Synchronization with Dynamics AX 2012 R2 Blog bot DAX Blogs 0 30.08.2013 06:12
DAX: Official Dynamics AX 2012 R2 Content (update) - Where is it, and how can you find out about updates? Blog bot DAX Blogs 0 03.12.2012 11:11
emeadaxsupport: Microsoft Dynamics AX Enterprise Portal what to do when WebPart "disappear" from site Blog bot DAX Blogs 0 26.04.2012 19:11

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

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

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