Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

services and their differences

Posted on by Microsoft Employee

Hi Guys,

Please teach me the following: - 

service.create or .delete or .update

.retrieve

.retrievemultiple

.gettype

.execute

.associate or disassociate 

Thanks everyone for spending time for me.

*This post is locked for comments

  • Verified answer
    Pawar Pravin  Profile Picture
    Pawar Pravin 5,227 on at
    RE: services and their differences

    Hi,

    All of the above are methods provided by CRM in Microsoft.Xrm.Sdk library that we can use for crud operation.

    .create - Create record in crm

    .delete - delete particular record in crm

    .update - update particular record in crm

    .retrieve - retrieve single record from crm

    .retrievemultiple - retrieve multiple record from crm (We can achieve this by using query expression or fetch expression)

    .gettype - return type of given field

    .execute - used for assign record, update status and status reason

    .associate - In N: N relationship we need to associate records with each other to create relation between two records

    disassociate - vice versa of associate method (break relation between two records)

    Please do refer following url for sample examples:

    msdn.microsoft.com/.../microsoft.xrm.sdk.client.organizationserviceproxy.execute.aspx

  • Verified answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: services and their differences

    Hi Suchisuchi,

    In addition to that, here is the documentation for these particular methods:msdn.microsoft.com/.../microsoft.xrm.sdk.iorganizationservice_methods.aspx

    And here is the sample code:msdn.microsoft.com/.../gg328416.aspx

    If you have any specific question regarding these methods please share here.

  • Verified answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: services and their differences

    Hi ,

    Hope below reference will help you to understand-

    Retrieve -

    Retrieve retrieves a single record given the record ID, the method requires 3 parameters: the entity logicalname, the record ID and the columns (attributes) you want to retrieve. It throws an exception if the record ID is not found.

    RetrieveMultiple  -

    RetrieveMultiple runs a Query against CRM, normally a QueryExpression is used that defines the entity logicalname, the conditions of the query and the columns (attributes) you want to retrieve. It returns always an EntityCollection object and the Entities property contains the list of the records that satisfy the query conditions, so you can have 0, 1 or n records returned.

    rajamadduri.wordpress.com/.../difference-between-retrieve-and-retrieve-multiple

    gettype -

    Using this method you can Retrieve Entity Attribute type, for example AttributeName.GetType() will provide you it's data type.

    Execute -

    Execute includes common processing like create and delete of data records and metadata, or it can be specialized processing such as import or detect duplicates.

    msdn.microsoft.com/.../microsoft.xrm.sdk.iorganizationservice.execute.aspx

    msdn.microsoft.com/.../microsoft.xrm.sdk.client.organizationserviceproxy.execute.aspx

    associate or disassociate -

    msdn.microsoft.com/.../microsoft.xrm.sdk.iorganizationservice.associate.aspx

    msdn.microsoft.com/.../microsoft.xrm.sdk.iorganizationservice.disassociate.aspx

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans