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
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
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
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.
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156