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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 26.11.2018, 17:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
crmtipoftheday: Tip #1198: Add email address to recipients in javascript
Источник: https://crmtipoftheday.com/1198/add-...in-javascript/
==============

The advantage of having access to friendly brainpower is that the problems are getting resolved much quicker. The disadvantage is that it breeds inattentive coding. Daryl “Always Raising” LaBar almost threw in a towel but recovered and redeemed himself with the snippet how to add an arbitrary email address to the list of the email recipients on the email form.

function appendToEmail(executionContext){var formContext = executionContext.getFormContext();// prior to v9: Xrm.Pagevar att = formContext.getAttribute('to'); // or 'cc'var emails = att.getValue() || [];emails.push({name: 'george@foobar.com', type: '9206'});att.setValue(emails);}Potential gotchas:
  • the property is type not entityType as one would expect
  • sending emails to arbitrary recipients must be enabled in System settings


(Facebook and Twitter Cover photo by Mathyas Kurmann on Unsplash)



Источник: https://crmtipoftheday.com/1198/add-...in-javascript/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
crmtipoftheday: Tip #1121: What happens if an email is sent to multiple queues? Blog bot Dynamics CRM: Blogs 0 04.06.2018 22:12
crmtipoftheday: Tip #1101: Add a scale break to charts Blog bot Dynamics CRM: Blogs 0 07.04.2018 04:03
crmtipoftheday: Tip #1099: Add Annotations to Charts Blog bot Dynamics CRM: Blogs 0 06.04.2018 06:15
crmtipoftheday: Tip #1095: Add percentage labels to pie charts Blog bot Dynamics CRM: Blogs 0 02.04.2018 04:16
crmtipoftheday: Tip #1026: Change your perspective on tracking email Blog bot Dynamics CRM: Blogs 0 20.11.2017 09:11
Опции темы Поиск в этой теме
Поиск в этой теме:

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

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

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

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