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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 15.12.2017, 18:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
CRMScape: MS CRM Email Template with dynamic id in link
Источник: http://crmscape.blogspot.com/2017/12...ynamic-id.html
==============

You are trying to create a custom email to a group of contacts and want to create a URL with a contactid in the query string to customize what they see when they click on that link.

It turns out that you need to understand two things to make this work.

In the Template Editor when you press Insert/Update there is no option for the contactid.

#1 Generating a contact id



To create a contactid merge field you need to type the following which is case sensitive.

{!contact:contactid;}

Now Save the Template and this text will turn into a working merge field that returns the contact id of the contact the email is being sent to.

{!Contact:Contact;}

#2 Be careful about links in the Email Template Editor



The following two lines will not be processed the same way when the emails are sent.

The following line will be merged properly and the contact's email browser will typically display a link.

https://www.myportal.com/OrderService.aspx?id={!Contact:Contact;}&type=0


This line may surprise you since the email will look fine but the link won't work.
https://www.myportal.com/OrderService.aspx?id={!Contact:Contact;}&type=0

What you get is the following:





Notice that the text of the link is merged, but the href value is not.


What if you want a nicely formatted link?

Please click here to find out more!

At this point I "believe" your only course of action is to manually modify the XML in the email template body in SQL. I haven't tried that yet, but will post additional information if I do.





Источник: http://crmscape.blogspot.com/2017/12...ynamic-id.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 8 Blog bot Dynamics CRM: Blogs 1 30.04.2016 10:26
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 17 Blog bot Dynamics CRM: Blogs 0 10.05.2014 06:30
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2013 Update Rollup 2 Blog bot Dynamics CRM: Blogs 0 15.04.2014 01:15
Gareth Tucker: Click Dimensions Email Marketing for Microsoft CRM 2011 Blog bot Dynamics CRM: Blogs 0 28.04.2012 11:11
Gareth Tucker: Email Marketing add-ons for Microsoft CRM 2011 Blog bot Dynamics CRM: Blogs 0 17.04.2012 11:11
Опции темы Поиск в этой теме
Поиск в этой теме:

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

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

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

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