Monday 11 May 2015

Using ‘No Lock’ in FetchXML CRM

Hi,
 
Sometimes when retrieve records from CRM, the program might take more time than expected. It might be because of the data is being uploaded to CRM from other source.
 
Normally, we use "No Lock" in the SQL Query and the same thing can be applied for Fetch XML query too.
 
Here is the sample Fetch XML query
 
string strFetchXML = @"<fetch mapping=’logical’ no-lock=’true’>
                     </fetch>";

--
Happy CRM'img
Gopinath.

No comments:

Post a Comment