Answered by:
Is there a way to add a Friendly URL link into an Email Template

Question
-
I have created an email template and want to insert a custom Lead record called: new_LeadURL {!Lead:Lead URL1;}
this works fine but when the lead gets the email it shows the exact URL and not a friendly url with
html behind.
When I create the email with URL links in Word and cut and Paste into the email template it works fine.
I want to be able to grab a unique key for each Lead and add it into the email they get so we can track where
they came from when they click on a link, etc.Thursday, March 4, 2010 9:24 PM
Answers
-
Modify your email description by scripting in Onload event of email entity.
Email Onload()
crmForm.all.descriptionIFrame.document.body.innerHTML += <<append GUID>>;Regards
Vinoth- Marked as answer by DavidJennawayMVP, Moderator Monday, April 19, 2010 1:04 PM
Monday, March 8, 2010 4:48 AM
All replies
-
Only adding a friendly url in email template is posible by Ctrl+K, but adding Guid in link inside email template is not posible.
You need to write an plugin for this purposeon on email creation and replace your url with friendly url.
http://www.allaboutdynamics.comFriday, March 5, 2010 4:16 AM -
Hi
Hope it might help you.
1. Create a URL link (without GUDI, i.e. '/SFA/accts/edit.aspx?id=') using Word or visual studio or any other editor as you suggested as a Friendly URL (HTML code embedded behind).
2. Use JavaScript to append the html code behind of the Firendly URL by accessing the description field like
crmForm.all.descriptionIFrame.document.body.innerHTML += <<append GUID>>;
Regards
Vinoth- Proposed as answer by VinothBalasubramanian Monday, March 8, 2010 4:48 AM
Friday, March 5, 2010 7:26 AM -
Vinoth, this sounds like a good idea, but where would I put the Javascript code? In the Word document?
I am using CRM Online, so I can't use custom Plugins.Friday, March 5, 2010 4:47 PM -
Modify your email description by scripting in Onload event of email entity.
Email Onload()
crmForm.all.descriptionIFrame.document.body.innerHTML += <<append GUID>>;Regards
Vinoth- Marked as answer by DavidJennawayMVP, Moderator Monday, April 19, 2010 1:04 PM
Monday, March 8, 2010 4:48 AM