Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Unable to expand rest API get for email_activity_parties

(0) ShareShare
ReportReport
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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans