Hello,
how to set below fields When user create Appointment using plug-in.
1.Populate the Organizer field with the Current User :- Organizer is Party List type
2.Set the Status Reason to Busy
Thanks
*This post is locked for comments
Hello,
how to set below fields When user create Appointment using plug-in.
1.Populate the Organizer field with the Current User :- Organizer is Party List type
2.Set the Status Reason to Busy
Thanks
*This post is locked for comments
How to set account name filed When create using plugin ?
Hi,
You can refer this article.
// Set Appointment Organizer
-------------------- // Create the activity party Entity organizerParty = new Entity("activityparty"); organizerParty.Attributes.Add("partyid", new EntityReference("systemuser", <id>)); // Add activityparty to partylist EntityCollection organizerCollection = new EntityCollection(); organizerCollection.EntityName = "systemuser"; organizerCollection.Entities.Add(organizerParty); // update oranizer on appointment Entity updAppointment = new Entity("appointment", <appoinymentid>); updAppointment["organizer"] = organizerCollection;
--------------
// Set Appointment to busy
---------------
SetStateRequest request = new SetStateRequest(); request.EntityMoniker = new EntityReference(appointment.EntityName, appointmentId); request.State = new OptionSetValue(3); request.Status = new OptionSetValue(5); service.Execute(request);
----------------------------
Refer the below links for more details-
https://nishantrana.me/2011/05/17/set-organizer-or-working-with-activityparty-in-crm-2011/
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156