Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

How to fill resources field in service activity entity

(0) ShareShare
ReportReport
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);

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,784 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,476 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans