Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Unanswered

How to fill resources field in service activity entity

Posted on by 645

I have a task to create service appointment  dynamically  I have a difficulty  filling the resources field, I tried with entity reference but still get exceptions, how can I fill that field?

my bad code example 

ServiceAppointment newServAppo = new ServiceAppointment();
newServAppo.Resources. = new EntityReference(SystemUser.EntityLogicalName, userId);
OrganizationService.Create(newServAppo);

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans