Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 release wave 1 Discover the latest updates and new features to Dynamics 365 planned through September 2020
Release overview guides and videos Release Plan | Preview 2020 Release Wave 1 Timeline
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
I'm trying to fetch a list of related appointments in VS C# so i can export them to our billing app.
it works great except i can't retrieve the organizer element / attribute / (field)
Here is the query.
i get this error:
Code: -2147220970Message: An unexpected error occurred.Plugin Trace:Inner Fault: Has Inner Fault
if i comment out "organizer" then it work A1.
ActivityQry = new QueryExpression("appointment");
ActivityQry.ColumnSet = new ColumnSet("subject", "regardingobjectid", "scheduledstart", "scheduledend", "scheduleddurationminutes"
, "description", "new_typeofwork"); // , "organizer"); <-- not sure why organizer throws error... not sure i need it
ActivityQry.Distinct = true;
ActivityQry.Criteria = new FilterExpression(LogicalOperator.And);
ActivityQry.Criteria.AddCondition("regardingobjectid", ConditionOperator.Equal, ClosedIncident.Id); // get related appointments
RelActivities = (EntityCollection)service.RetrieveMultiple(ActivityQry);
Is the organizer field on the Form?
Yes, but this code is external, its a small vs c# "app" that pull information from CRM and sends it to an external database for us to invoice customers in our Accounting App.
I realized that its a party litst and i tried all 3 party list fields in the Entity and all 3 give me the same error.
I am not sure if i need to use a different method to retreive the "partylistID" from the entity.
Please take a reference following links to find your solutions. I know the organizer is not serchable party list field. I didn't try but you can try with Entity collection method.
Thanks for the leads, most of them point out how to retrieve the contents of a partylist, but for that I needed the get the object field first.
I tried to read the field directly using a service.retreive with the GUID of the record, but for some odd reason my entityvar.Id was Null (my GUID for each record)
I have no Logical explanation (someone?) but the solution is to include "activityid" in the column set. once you add it, you can retrieve the organizer field. the entityvar.id also gets populated. I didnt need the activityid so i didnt put it in the query... i guess its a must!
Business Applications communities