web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

services and their differences

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    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

  • Verified answer
    Mahendar Pal Profile Picture
    45,095 on at

    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
    Pawar Pravin  Profile Picture
    5,237 on at

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans