views:

1579

answers:

3

Is it possible to create an attribute of type Partylist in Microsoft Dynamics Crm 4.0?

+1  A: 

The PartyList type is basically a system control to display a n:n relationship on emails. Right now, we are not allowed to create new attributes of type PartyList.

Mikeyb
A: 

Hai All,

I have a small task like need to add attribute to my custom entity which same as "TO" field in Email activity. Is it possible?..

I want the solutuion if it is possible?

Kindly..

Its very urgent?

A: 
<attribute PhysicalName="to">
  <Type>partylist</Type>
  <ValidForCreateApi>1</ValidForCreateApi>
  <ValidForUpdateApi>1</ValidForUpdateApi>
  <ValidForReadApi>1</ValidForReadApi>
  <IsLogical>1</IsLogical>
  <AttributeTypeId>00000000-0000-0000-00aa-110000000039</AttributeTypeId>
  <DisplayMask>ValidForForm|ValidForGrid|RequiredForForm</DisplayMask>
  <Descriptions>
    <Description description="Sending Mails to the specified Users." languagecode="1033" />
  </Descriptions>
  <ImeMode>auto</ImeMode>
  <RequiredLevel>none</RequiredLevel>
  <Format />
  <LookupClass>SystemUsers</LookupClass>
  <LookupStyle>multi</LookupStyle>
  <LookupTypes>
    <LookupType id="f93fb506-2341-db11-898a-0007e9e17ebd">8</LookupType>
  </LookupTypes>
  <displaynames>
    <displayname description="Users" languagecode="1033" />
  </displaynames>
</attribute>

Just add code to any entity where you want Party list attribute. Tested working Fine.