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,
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);
Custom code is in C#. Thanks.
Hi Kentan, Can you elaborate what exactly you want, or if the custom code is C# plugin or JavaScript ?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,900 Super User 2024 Season 2
Martin Dráb 229,297 Most Valuable Professional
nmaenpaa 101,156