Sunday, February 05, 2012

Categories

Archive

Tag Cloud

Recent Comments

"FYI - This does not work with "set-psdebug -strict". This setting requires all variables be defined before they can be referenced, the equivalent of "option explicit" from vbscript. " Read more
by Bill Faulk on Export CRM customizations using PowerShell

"Hi Molly -- this kind of stuff can be dicey to troubleshoot. Make sure the workflow scope is set to Organization and not User and that it is published. Sharing is not required. Then make sure their role can execute workflows. Hope this helps, Phil" Read more
by Phil Edry on Allow Multiple Users to Sync the Same Contact to Outlook Effortlessly with Microsoft CRM

"Phil, I spoke too soon. I was able to get everything set up. I was testing this with out inside sales group and when they try to run the workflow they receive an error saying they do not have permission to run the workflow. I went back and made sure they had rights to the sync entity and the workflow. I shared the workflow with them (I believe that is what I should do), but they still cannot run it. What else could I be missing? Thanks in advance. Molly" Read more
by Molly McGill on Allow Multiple Users to Sync the Same Contact to Outlook Effortlessly with Microsoft CRM

"Glad I could help!" Read more
by Phil Edry on Allow Multiple Users to Sync the Same Contact to Outlook Effortlessly with Microsoft CRM

"Thanks Phil! That worked. I knew it was something simple that I was just overlooking." Read more
by Molly McGill on Allow Multiple Users to Sync the Same Contact to Outlook Effortlessly with Microsoft CRM

"Hi Molly -- open a role that the salesman has and click on the very last tab "Custom Entities". Make sure he has rights on the Sync User entity. Best, Phil" Read more
by Phil Edry on Allow Multiple Users to Sync the Same Contact to Outlook Effortlessly with Microsoft CRM

"I think this is really going to help us. I am having a problem configuring outlook for one of our salesman and I cannot get "Sync Users (contact)" to even show up. I'm sure I'm missing something in their role. Do you know what should be changed to allow them to see that?" Read more
by Molly McGill on Allow Multiple Users to Sync the Same Contact to Outlook Effortlessly with Microsoft CRM

"hi, good staff.I think calender is the most important aspects of any crm solution.It help to update the information about the events and also helpful to for modification of transactions and easily approachable medium " Read more
by real estate crm on Adding a Custom Calendar to the CRM UI

Altriva Team Blog

The Power of IFrames: Presenting External Data, Stock Price Graph Example

Posted by: Phil Edry on 10/16/2009
  • Categories:
  • CRM

IFrames are a powerful extension tool within Microsoft Dynamics CRM 4.0. In addition to allowing you to host custom websites, IFrames allow you to present relevant data from external websites within the context of an open entity. As a quick example, this blog post will show how to present historical information regarding a company’s stock price from within an account form. I hope this example will inspire you to find many other ways to present relevant data to users through the use of IFrames.
 

Let’s jump straight into implementing this solution. When we’re done, we’ll have a new tab that has an IFrame reference to Google Finance search on the company’s ticker symbol, or if that isn’t provided, then the company’s name.

 Step 1: Add a new tab to the account entity.

In the CRM web client, navigate to Customize Entities >> Account >> Forms and Views >> Form and click Add a Tab. Name the tab as you see fit – we’ll call it “Finance”.

Step 2: Add a Section to the new tab with the default options and then add an IFrame with the following pictured settings entered.

 

Step 3: Add JavaScript

While still on the form, navigate to Form Properties >> OnLoad. Merge the following code into any existing code in the OnLoad event. Be sure to check the “Event is Enabled” check box if it is not already checked.

var sUrl = "about:blank";
 
if (crmForm.all.tickersymbol.DataValue != null && crmForm.all.tickersymbol.DataValue != "")
{
    sUrl= "http://www.google.com/finance?q=" + crmForm.all.tickersymbol.DataValue;
}
else if (crmForm.all.name.DataValue != null && crmForm.all.name.DataValue != "")
{
    sUrl= "http://www.google.com/finance?q=" + crmForm.all.name.DataValue;
}
crmForm.all.IFRAME_finance.src = sUrl;

 
It is a good idea to check for crmForm.FormType to ensure the code only fires when you expect it to, but this is optional. Another optional step would be to add this code to the OnChange event for the Ticker Symbol and Name fields. Also, you could hide the Finance tab whenever the Ticker Symbol field is empty, but note that hiding tabs is technically unsupported in CRM 4.0.
 

Step 4: Publish
 

Save and close the form and then click publish.

Conclusion

That’s it! Now users can get a quick view of the financials for a given company just by switching to the Financials tab. This piece of functionality demoed above is just a taste of what can be done with IFrames. In fact, this functionality is pretty redundant, since users can simple double click the Ticker Symbol on a form and get similar data from MSN Money. The only thing this piece of functionality that this specific customization provides is the ability to search on a company that doesn’t have the Ticker Symbol field filled out, since it uses the name instead. A couple of quick JavaScript changes, and you could easily modify this example to display driving directions from your main office to an account’s primary address using Bing or Google Maps. It is small improvements like these that can give an added boost your customer adoption campaign.
 

Create a trackback from your own site.

0 Comments

Leave A Comment



Please enter the CAPTCHA phrase above.



Copyright 2010 by Altriva LLC