Welcome to MSDN Blogs Sign in | Join | Help

Microsoft Dynamics CRM Online Team Blog

This blog is focused on Microsoft Dynamics CRM Online (crm.dynamics.com).

News

  • The views expressed in this blog are those of the individual and do not necessarily represent those of Microsoft. This information is provided by way of general information only and should not be relied on without obtaining independent expert advice. These postings are provided "AS IS" with no warranties and confer no rights. You assume all risk for your use.
Opportunity Links in an Email

Here's a nice customization you can easily add.

Scenario:

Sales rep would like to have an email sent whenever a new opportunity is assigned to them. Using workflow, you create a rule that sends them an email whenever an opportunity is assigned to them. In the email, you can include any attribute information that is associate to the opportunity.

The challenge is how does the sale rep find that opportunity from the email ? They have open CRM, and then search on the topic or look at opportunities that belong to them. Either way it's  a multi step process.

What's the solution ? Create a url link to the opportunity and place in the email. The sales rep can then 1-click to the opportunity.

Steps:
Create a new attribute in the opportunity entity, called url_address.
In the OnSave event, set that field to the URL of the opportunity.
In your workflow when you create your email, you'll now have an attribute with the URL address of that opportunity.
Insert the field into the email and your sales rep will have a 1 click step to the opportunity.
OnSave Event Script

crmForm.all.URL=
"https://OrgName.crm.dynamics.com/sfa/opps/edit.aspx?id=" + crmForm.ObjectId;

-cheers
Jon

Posted: Tuesday, April 01, 2008 12:17 PM by JonWhite

Comments

marclandermann said:

Hi Jon,

thanks for your post and the nice customization.

Unfortunatly, after using the same code schema like in your post, the Link will be create as normal text in the email. Not as a utilisable hyperlink...

Thanks in advance for your help.

Marc

# June 24, 2008 12:12 PM

MindenMan said:

This doesn't work as when you first create an opportunity and save it down the opportunity does not yet have an ID, therefore the email links to an ID = Null.

# September 18, 2008 9:24 AM
Anonymous comments are disabled
Page view tracker