Home > MS CRM 4.0 > Finding Shared Records in CRM

Finding Shared Records in CRM

I had a requirement to find all shared orders in a system , with simple fetch xml we can find all shared records in a CRM

<fetch version=’1.0′ output-format=’xml-platform’ mapping=’logical’ distinct=’true’>

<entity name=’salesorder’>

<attribute name=’name’/>

<filter type=’and’>

<condition attribute=’statecode’ operator=’eq’ value=’0’/>


<link-entity name=’principalobjectaccess’ from=’objectid’ to=’salesorderid’ link-type=’inner’>

<filter type=’and’>

<condition attribute=’accessrightsmask’ operator=’gt’ value=’1’/>





Categories: MS CRM 4.0
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: