web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to create a party list in CRM

(0) ShareShare
ReportReport
Posted on by

Hi 

I want to create a party list with the same functionality that is in the add Phone which is the activity. 

If i select the incoming

the "From" Field must be to "Contacts " TO must be  "Users"

If Outgoing 

the "From" Field must be to "Users" TO must be  "Contacts"

How to achieve this .. Or can't?????

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at
    RE: How to create a party list in CRM

    Hi,

    Use the below code to create the party list :

    // Create a new activity party linked to a contact

    Entity party1 = new Entity("activityparty");

    party1["addressused"] = "some@email.com";

    party1["partyid"] = new EntityReference("contact", contactId);

    // Create a new activity party linked to a system user

    Entity party2 = new Entity("activityparty");

    party1["addressused"] = "some@email.com";

    party1["partyid"] = new EntityReference("systemuser", systemuserid);

    // Create a new EntityCollection and add the 2 parties

    EntityCollection to = new EntityCollection();

    to.Entities.Add(party1);

    to.Entities.Add(party2);

    // Create an phone with the EntityCollection

    Entity phone = new Entity("phone");

    phone["subject"] = "Test Party Lists";

    phone["to"] = to;

    _sdk.Create(phone);

  • Suggested answer
    Aman Kothari Profile Picture
    on at
    RE: How to create a party list in CRM

    Hi,

    Try below link

    msdn.microsoft.com/.../hh372955.aspx

    Thanks

  • Suggested answer
    MicroXware Profile Picture
    on at
    RE: How to create a party list in CRM

    This is easily accomplished in CRM 2013 using Javascript. There is a way to accomplish this record type filtering in CRM 2016 Please refear to Scott Florance article Setting Entity Lookup Defaults on Party Lists in Dynamics CRM 2016 at www.ktlsolutions.com/.../setting-entity-lookup-defaults-party-lists-dynamics-crm-2016

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans