Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Answered

Unable to expand rest API get for email_activity_parties

Posted on by 5

We are executing the following REST API query

terra.crm6.dynamics.com/.../emails(f0f3f8c3-dcae-ec11-983f-002248936aa6)

The issue we have is that the nested expand returns no data as below:

{
    "@odata.context""">terra.crm6.dynamics.com/.../$metadata,
    "@odata.etag""W/\"5364918\"",
    "subject""EMAIL A",
    "activityid""f0f3f8c3-dcae-ec11-983f-002248936aa6",
    "email_activity_parties": [
        {
            "@odata.etag""W/\"4911349\"",
            "addressused""brian.t.langdon@gmail.com",
            "participationtypemask"1,
            "activitypartyid""f2f3f8c3-dcae-ec11-983f-002248936aa6",
            "partyid_contact"null,
            "partyid_systemuser"null,
            "activityid_email"null
        },
        {
            "@odata.etag""W/\"4911350\"",
            "addressused""paul.marsh@terra.com",
            "participationtypemask"2,
            "activitypartyid""f3f3f8c3-dcae-ec11-983f-002248936aa6",
            "partyid_contact"null,
            "partyid_systemuser"null,
            "activityid_email"null
        },
    ]
}
Does anybody have any idea why we cannot expand partyid_contact, partyid_systemuser etc?
  • Paul i3cloud Profile Picture
    Paul i3cloud 5 on at
    RE: Unable to expand rest API get for email_activity_parties

    Hi Steve - Ah yes you are correct that works perfectly for me - thanks so much!

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Unable to expand rest API get for email_activity_parties

    Hi Paul i3cloud,

    Based on the doc, there is no 'partyid_contact' and 'partyid_systemuser' property. Instead, it has a property named '_partyid_value' and it could have 5 types(Queue, User, Knowledge Article, Account and Contact ).

    You could distinguish its type by this property '_partyid_value@Microsoft.Dynamics.CRM.lookuplogicalname'.

    Below is my test:

    pastedimage1649917562462v1.png

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,558 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,647 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans