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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 28.04.2018, 01:25   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
powerobjects: How to Open an Email Activity with a Custom Button
Источник: https://www.powerobjects.com/2018/04...custom-button/
==============


You may ask why would we ever need a custom button to open an email activity from a record while we can do it from the social pane! Well, good question, and here is the answer: Users want to do their work with fewer clicks.

Note: Please check out previous blog posts to learn how to use Scott Durow’s Ribbon Workbench to create a custom button.

Let’s say we want to open the new email activity and load a specific template when a custom button is clicked on an account record.

1. Add the following libraries to the Email form:
  • Sdk.Soap.min.js
  • Sdk.InstantiateTemplate.js
NB: It is highly recommended to combine both files in one to avoid JS files loading sequence issues.

2. Open the Email form in edit mode, click Form Properties and add two new parameters “parameter_1” and “parameter_2”.



3. Use the following code on the click event of the custom button.



4. Add this code to the onLoad event of the Email record.



NB: You can choose which template to load based on a business case scenario/rule that you can define in the JavaScript code.

5. When the custom button is clicked on the Account record, an email activity is opened in a new popup window and the template is loaded.



As always, if you need assistance the Dynamics 365 experts at PowerObjects are here to help!

Happy D365’ing!



Источник: https://www.powerobjects.com/2018/04...custom-button/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
powerobjects: Activity View Rollup for Custom Entities in Dynamics 365 Blog bot Dynamics CRM: Blogs 0 27.01.2018 05:56
powerobjects: How to Send an Automatic Email Response on a Case Creation Blog bot Dynamics CRM: Blogs 0 12.12.2017 00:12
atinkerersnotebook: Walkthrough & Tutorial Summary Blog bot DAX Blogs 1 09.09.2013 09:11
Microsoft Dynamics CRM Team Blog: How to control surfacing of Custom Activity Blog bot Dynamics CRM: Blogs 0 17.05.2011 01:14
Ошибка бизнес-процесса Tarasov E Dynamics CRM: Разработка 9 18.02.2010 14:02
Опции темы Поиск в этой теме
Поиск в этой теме:

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

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

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

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