Skip to Content
Microsoft Dynamics CRM 2011 Unleashed
book

Microsoft Dynamics CRM 2011 Unleashed

by Marc Wolenik, Damian Sinay, Rajya Bhaiya
September 2011
Intermediate to advanced content levelIntermediate to advanced
1008 pages
24h 27m
English
Sams
Content preview from Microsoft Dynamics CRM 2011 Unleashed

IOrganizationService

Previously, the IPluginExecutionContext had methods to create the CRM and Metadata Services; now you will see these methods are gone. To use the CRM services you need to get an instance of the IOrganizationService as follows:

IOrganizationService service = factory.CreateOrganizationService(context.UserId)

The service instance returned by the IOrganizationService has the following methods:

Associate—Used to create a link between records

Create—Used to create records

Delete—Used to delete records

Disassociate—Used to remove a link between records

Excecute—Used, for example, to execute Fetch queries

Retrieve—Used to retrieve a record

RetrieveMultiple—Used to retrieve more than one record

Update—Used to update ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft Dynamics CRM 2013 Unleashed

Microsoft Dynamics CRM 2013 Unleashed

Marc Wolenik
Microsoft Dynamics® CRM 2011 Step by Step

Microsoft Dynamics® CRM 2011 Step by Step

Jim Steger Mike Snyder and Brendan Landers

Publisher Resources

ISBN: 9780132682084Purchase book