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 ...

Get Microsoft Dynamics CRM 2011 Scripting Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.