CrmServiceClient Members
Provides the low-level interaction and wrapper methods to connect to Microsoft Dynamics CRM and execute actions.
The following tables list the members exposed by the CrmServiceClient type.
Public Constructors
Name | Description | |
---|---|---|
CrmServiceClient | Overloaded. |
Top
Public Properties
Name | Description | |
---|---|---|
![]() |
ConnectedOrgFriendlyName | Gets the friendly name of the organization that you are connected to. |
![]() |
ConnectedOrgPublishedEndpoints | Gets the endpoint collection for the organization you are connected to. |
![]() |
ConnectedOrgUniqueName | Get the unique name of the organization you are connected to. |
![]() |
ConnectedOrgVersion | Gets the version number of the organization you are connected to. If accessed before you are connected to an organization, null or 0.0 is returned. |
![]() |
ConnectionLockObject | Gets the connection lock object that is used to control connection access for various threads. This should be used to lock the connection if you are using the Microsoft Dynamics CRM queries via LINQ. |
![]() |
CrmConnectOrgUriActual | Gets the actual URI used to connect to Microsoft Dynamics CRM. This URI could be influenced by user defined variables. |
![]() |
IsBatchOperationsAvailable | Gets information about the availability of batch operation. If true, batch operations are available. |
![]() |
IsReady | Gets the service connection status. If true, the service is ready to accept requests. |
![]() |
LastCrmError | Gets the last error that occurred while attempting to connect to Microsoft Dynamics CRM. |
![]() |
LastCrmException | Gets the last exception that occurred while attempting to connect to Microsoft Dynamics CRM. |
![]() |
OrganizationServiceProxy | Gets the native Microsoft Dynamics CRM organization service. |
Top
Public Methods
(see also Protected Methods)
Name | Description | |
---|---|---|
![]() |
AddEntityToQueue | Route an entity to a public queue. |
![]() |
AssignEntityToUser | Assign an Entity to the specified user ID |
![]() |
CancelSalesOrder | Cancel Sales order |
![]() |
CloseActivity | Closes the Activity type specified. The Activity Entity type supports fax , letter , and phonecall*Note: This will default to using English names for Status. if you need to use Non-English, you should populate the names for completed for the status and state. |
![]() |
CloseIncident | Closes an Incident request in CRM, this special handling is necessary to support CRM Built In Object. |
![]() |
CloseOpportunity | This will close an opportunity as either Won or lost in CRM |
![]() |
CloseQuote | Closes a quote as won or lost, Revise is not supported via this method |
![]() |
CloseTroubleTicket | Closes a Trouble ticket by ID |
![]() |
CreateAnnotation | This creates a annotation [note] entry, related to a an existing entityRequired Properties in the fieldListnotetext (string) = Text of the note,subject (string) = this is the title of the note |
![]() |
CreateBatchOperationRequest | Create a Batch Request for executing batch operations. This returns an ID that will be used to identify a request as a batch request vs a "normal" request. |
![]() |
CreateEntityAssociation | Associates one Entity to another where an M2M Relationship Exists. |
![]() |
CreateMultiEntityAssociation | Associates multiple entities of the same time to a single entity |
![]() |
CreateNewActivityEntry | Creates a new activity against the target entity type |
![]() |
CreateNewRecord | Uses the dynamic entity patter to create a new entity |
![]() |
CreateOrUpdatePickListElement | Adds an option to a pick list on an entity. |
![]() |
DeleteEntity | Deletes an entity from the CRM |
![]() |
DeleteEntityAssociation | Removes the Association between 2 entity items where an M2M Relationship Exists. |
![]() ![]() |
DiscoverOrganizations | Overloaded. |
![]() |
Equals | (inherited from Object) |
![]() |
ExecuteBatch | Begins running the Batch command. |
![]() |
ExecuteCrmEntityDeleteRequest | Executes a row level delete on a CRM entity ( thread safe ) and returns true or false. Also adds metrics for logging support. |
![]() |
ExecuteCrmOrganizationRequest | Executes a CRM Organization Request (thread safe) and returns the organization response object. Also adds metrics for logging support. |
![]() |
ExecuteWorkflowOnEntity | Executes a named workflow on an object. |
![]() |
GetActivitiesBy | Overloaded. |
![]() |
GetAllAttributesForEntity | Returns all attributes on a entity |
![]() |
GetAllEntityMetadata | Returns a list of entities with basic data from CRM |
![]() |
GetBatchById | TEMP |
![]() |
GetBatchOperationIdRequestByName | Returns the batch id for a given batch name. |
![]() |
GetBatchRequestAtPosition | Returns the organization request at a give position |
![]() |
GetDataByKeyFromResultsSet | This function gets data from a Dictionary object, where "string" identifies the field name, and Object contains the data, this method then attempts to cast the result to the Type requested, if it cannot be cast an empty object is returned. |
![]() |
GetEntityAttributeMetadataForAttribute | Gets metadata for a specific entity's attribute. |
![]() |
GetEntityDataByFetchSearch | Overloaded. |
![]() |
GetEntityDataByFetchSearchEC | Overloaded. |
![]() |
GetEntityDataById | Gets a List of variables from the account based on the list of field specified in the Fields List |
![]() |
GetEntityDataByLinkedSearch | Overloaded. |
![]() |
GetEntityDataByRollup | Overloaded. |
![]() |
GetEntityDataBySearchParams | Overloaded. |
![]() |
GetEntityDisplayName | Gets an Entity Name by Logical name or Type code. |
![]() |
GetEntityDisplayNamePlural | Gets an Entity Name by Logical name or Type code. |
![]() |
GetEntityFormIdListByType | Returns the Form Entity References for a given form type. |
![]() |
GetEntityMetadata | Returns the Metadata for an entity from CRM, defaults to basic data only. |
![]() |
GetEntityName | Returns the Entity name for the given Type code |
![]() |
GetEntityTypeCode | Gets the typecode of an entity by name. |
![]() |
GetGlobalOptionSetMetadata | Gets a global option set from CRM. |
![]() |
GetHashCode | (inherited from Object) |
![]() |
GetMyCrmUserId | Gets the user ID of the currently logged in user. |
![]() |
GetPickListElementFromMetadataEntity | Gets a PickList, Status List or StateList from the metadata of an attribute |
![]() |
GetType | (inherited from Object) |
![]() |
ImportDataMapToCrm | Used to upload a data map to the CRM |
![]() |
ImportSolutionToCrm | Imports a CRM solution to the CRM Server currently connected.*** Note: this is a blocking call and will take time to Import to CRM *** |
![]() |
InstallSampleDataToCrm | Request CRM to install sample data shipped with CRM. Note this is process will take a few moments to execute.This method will return once the request has been submitted. |
![]() |
IsSampleDataInstalled | Determines if the CRM sample data has been installed |
![]() ![]() |
MakeSecureString | Makes a secure string |
![]() |
PublishEntity | Publishes an entity to the production system, used in conjunction with the Metadata services. |
![]() |
ReleaseBatchInfoById | Release a batch from the stack Once you have completed using a batch, you must release it from the system. |
![]() |
ResetLocalMetadataCache | This will clear the Metadata cache for either all entities or the specified entity |
![]() |
RetrieveBatchResponse | |
![]() |
SendSingleEmail | Sends an email. |
![]() |
SubmitImportRequest | Starts an Import request for CRM.Supports a single file per Import request. |
![]() |
ToString | (inherited from Object) |
![]() |
UninstallSampleDataFromCrm | Request CRM to remove sample data shipped with CRM. Note this is process will take a few moments to execute. This method will return once the request has been submitted. |
![]() |
UpdateEntity | Generic update entity |
![]() |
UpdateStateAndStatusForEntity | Overloaded. |
Top
Protected Methods
Name | Description | |
---|---|---|
![]() |
Finalize | (inherited from Object) |
![]() |
MemberwiseClone | (inherited from Object) |
Top
See Also
Reference
CrmServiceClient Class
Microsoft.Xrm.Tooling.Connector Namespace
Other Resources
Build windows client applications using the XRM tools
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.