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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Partylist "To" in CRM

(0) ShareShare
ReportReport
Posted on by 795

Hi,

I am working on Email Configurations in Online Dynamics CRM. Issue is that : i am getting EntityReference "partyid" from "to" partylist as null or empty due to which emails are not coming in CRM.

Can you help me why is it so?

*This post is locked for comments

I have the same question (0)
  • Shidin Haridas Profile Picture
    3,499 on at

    Can you please elaborate on the following:

    'i am getting EntityReference "partyid" from "to" partylist as null or empty'

    Are you creating emails from custom code?

  • CRM Beginner  Profile Picture
    795 on at

    Yes, i have a plugin which is creating emails in CRM..

    This is the code snippet i am using in it:

                       EntityCollection to = entity.GetAttributeValue<EntityCollection>("to");

                       tracingService.Trace("outside To");

                       if (to != null && to.Entities.Count>0)

                       {

                           tracingService.Trace("inside To");

                           Entity toParty = to[0]; //activityparty entity

                           tracingService.Trace("toParty:" + toParty);

                           EntityReference toRef = (EntityReference)toParty["partyid"];

                           tracingService.Trace("toRef:" + toRef);

    In this, i am not getting the "toRef" trace and you can say getting partyid as Empty

  • Suggested answer
    Shidin Haridas Profile Picture
    3,499 on at

    Make the following changes and try.

    063205.Capture.PNG

    Entity toParty = to.Entities[0];
    EntityReference toRef = toParty.GetAttributeValue<EntityReference>("partyid");
  • CRM Beginner  Profile Picture
    795 on at

    Tried,,It still didn't work

  • ashlega Profile Picture
    34,477 on at

    Hi,

     check if you have "addressused" in that toParty - it could be that that particular "party" was not matched to any particular record

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans