Skip to main content



No record found.

Microsoft Dynamics CRM forum

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);

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 . . .


André Arnaud de Calavon Profile Picture

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

Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

nmaenpaa Profile Picture

nmaenpaa 101,148


Featured topics

Product updates

Dynamics 365 release plans