Link Custom Attributes of the Recurring Appointment Master (series) and Appointment Entities
You can link the custom attributes created for the RecurringAppointmentMaster entity with the custom attributes created for the Appointment entity to automatically copy the data from the recurring appointment master custom attribute to the linked recurring appointment instances custom attribute, every time it is expanded.
There is a 1:1 mapping between the custom attributes, which implies that a custom attribute of the recurring appointment master entity can be linked to only one custom attribute of the appointment entity. Moreover, the custom attributes that are to be linked together must be of the same type. For example, you cannot link a custom attribute of type string with a decimal custom attribute. For information about different types of attributes, see Customize Entity Attribute Metadata.
You cannot link the custom attributes that have field-level security enabled. Similarly, you cannot enable field-level security for linked custom attributes.
To link custom attributes
Create a custom attribute for the appointment entity using the CreateAttributeRequest class.
Create a custom attribute for the recurring appointment series (recurring appointment master) entity. While specifying the attribute metadata for the custom attribute, use the AttributeMetadata.LinkedAttributeId property to link to the custom attribute that you created in step 1.
Publish the changes to the solution.
For sample code, see Sample: Link Custom Attributes Between Series and Instances.
TasksSample: Link Custom Attributes Between Series and Instances
ConceptsCustomize Entity Attribute Metadata
Other ResourcesRecurring Appointment Entities
Microsoft Dynamics CRM 2011 and Microsoft Dynamics CRM Online
Send comments about this topic to Microsoft.
© 2012 Microsoft Corporation. All rights reserved.