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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Appointment Required Attendees Update

(3) ShareShare
ReportReport
Posted on by 26
Hello,
 
I have HR app where I use appointments table for interviews and custom u1_candidate table for candidates. When I create appointment I select interviewers (systemuser) in Required Attendees field and u1_candidate record in regarding. 
 
When button "save" pressed or even after save to dataverse I want to add my candidate to Required Attendees, but I cant do it:
 
1. u1_candidate is not valid lookup table for Required Attendees field
 
2. and I am not able to create Activity Party in flow or plugin
 
Action 'Add_a_new_row_|_Activity_Party' failed: The 'Create' method does not support entities of type 'activityparty'. MessageProcessorCache returned MessageProcessor.Empty.
 
 
0s
 
 
When a row is added | Interview

0.1s
 
 
Get a row by ID | Candidate

0.1s
 
Add a new row | Activity Party
 
BadRequest

 
 
 
Categories:
I have the same question (0)
  • Suggested answer
    Holly Huffman Profile Picture
    6,538 Super User 2025 Season 2 on at
    Hi there! Good morning, evening, or afternoon - depending on where you are :) Hope you are well today! 
     
    • Invalid Entity Type for Required Attendees Field:
      • The Required Attendees field in Dynamics 365 is a Party List field that is designed to reference Activity Party records, not custom entities like u1_candidate.
      • To work around this, you'll need to map your u1_candidate records to Activity Parties. This can be achieved by using an intermediary process, such as a plugin or Power Automate flow, to create Activity Party records based on your candidates.
    • Activity Party Creation Issue:
      • Unfortunately, the standard Create action in Power Automate doesn’t support the direct creation of Activity Party records, as shown in the error you encountered.
      • The solution here is to use a custom plugin that programmatically creates Activity Party records and links them to your activity. Here’s a high-level example of how this might look in a plugin:

        Entity activityParty = new Entity("activityparty");
        activityParty["partyid"] = new EntityReference("u1_candidate", candidateId); 
        activityParty["participationtypemask"] = 5; // Required Attendee 
        service.Create(activityParty);
      • Make sure to replace candidateId with the actual ID of your candidate record.
    • Plugin Deployment:
      • Once the custom plugin is developed, you’ll need to deploy it using the Plugin Registration Tool. It should trigger during the creation or update of your activities to populate the Required Attendees field with mapped candidates.
    • Future Considerations:
      • Consider whether these candidates might also need to be synchronized with your main contact or account table for better integration across the system.
      • Be cautious with error handling in your plugins or flows to avoid creating inconsistent data.
  • MH-03031453-0 Profile Picture
    26 on at
    Thank you for reply!
     
    I already tried using plugin but got the same error as in flow:
    FollowUpPlugin: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: The 'Create' method does not support entities of type 'activityparty'. MessageProcessorCache returned MessageProcessor.Empty.  (Fault Detail is equal to Exception details: 
    ErrorCode: 0x80040800


    I use PostOperation plugin on Create of appointment and maybe I am doing something wrong. Here is code:
    var candidateLookup = entity.GetAttributeValue<EntityReference>(Appointment.Fields.RegardingObjectId);
    var query = new QueryExpression(U1_Candidate.EntityLogicalName)
    {
        ColumnSet = new ColumnSet(U1_Candidate.Fields.U1_Email)
    };
    query.Criteria.AddCondition(U1_Candidate.Fields.U1_CandidateId, ConditionOperator.Equal, candidateLookup.Id);
    var results = service.RetrieveMultiple(query);
    if (results.Entities.Count > 0)
    {
        var candidate = results.Entities[0];
        Entity activityParty = new Entity(ActivityParty.EntityLogicalName);
        activityParty[ActivityParty.Fields.AddressUsed] = candidate[U1_Candidate.Fields.U1_Email];
        activityParty[ActivityParty.Fields.ParticipationTypeMask] = 5;
        activityParty[ActivityParty.Fields.ActivityId] = new EntityReference(Appointment.EntityLogicalName, entity.Id);
        service.Create(activityParty);
    }

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 41 Most Valuable Professional

#2
iampranjal Profile Picture

iampranjal 39

#3
Satyam Prakash Profile Picture

Satyam Prakash 35

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans