Announcements
No record found.
I am trying to write a custom code and require the use of ActivityParty class. However, I am not able to know what is the namespace of this class.
Anyone have any clues? Thanks for helping.
Hi Kentan, Can you elaborate what exactly you want, or if the custom code is C# plugin or JavaScript ?
Custom code is in C#. Thanks.
Hi Kentan,
I am not sure what you want exactly, but below is the code of creating email records in CRM consisting of activity party. Let me know if you need something else.
// 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 unresolved activity party Entity party2 = new Entity("activityparty"); party2["addressused"] = "unresolved@email.com"; // Create a new EntityCollection and add the 2 parties EntityCollection to = new EntityCollection(); to.Entities.Add(party1); to.Entities.Add(party2); // Create an email with the EntityCollection Entity email = new Entity("email"); email["subject"] = "Test Party Lists"; email["to"] = to; _sdk.Create(email);
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.
Congratulations to a top community star!
In our never-ending quest to help the Dynamics 365 Community members get answers faster …
Welcome to the next edition of the Community Platform Update. This is a status …
Stay up to date on forum activity by subscribing.