O'Reilly logo

Microsoft Dynamics CRM 2011 Scripting Cookbook by Nicolae Tarla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding an account logo

In this recipe, we will be looking at a simple way to allow users to add an account picture. We will create the form elements, and will load the picture from an attachment to the Account in the Notes area. For the purpose of this recipe, we will be expecting the logo to be named account_logo.jpg.

Getting ready

For this recipe, we can either create a new solution, or reuse one of the existing ones. Make sure you have the proper permissions to customize the system you work on. Add the Account entity to your solution.

How to do it...

  1. Open the main Account form for editing.
  2. Add a new Web Resource element to your form. Name it WebResource_AccountLogo. Add a label of Account Logo.
  3. In the Web resource lookup, point to a generic image ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required