Working with text fields

In this recipe, we will be retrieving information from the Phone field of a Contact entity. We can work in the same fashion with any other default text fields on any entity form, or with custom fields.

Getting ready

If you have a solution created from the previous chapter, open that solution. If not, create a new solution package. We will be saving all configurations as part of a solution package.

How to do it...

In order to associate our script with a field on the Contact form, we will follow these steps:

  1. Navigate to Settings | Solutions.
  2. Open the previously created solution package or create a new one.
  3. Select Entities, and click on Add Existing to add the Contact entity, as shown in the following screenshot:
  4. Scroll down until ...

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.