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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to check if current record has been shared

(0) ShareShare
ReportReport
Posted on by 11,323

Hi,

I would like to create a fetchxml query which checks if the current record has been shared with anyone or not.

The entity that it will run on will always remain the same.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Hi!

    Check this

    <fetch version='1.0' output-format='xml-platform' mapping='logical'

    distinct='false'>

      <entity name='account' >

        <attribute name='name' />

        <attribute name='createdon' />

        <attribute name='createdby' />

        <order attribute='name' descending='false' />

        <link-entity name='principalobjectaccess' to='accountid' from='objectid'

    link-type='inner' >

          <filter type='and'>

            <condition attribute='principalid' operator='eq-userid' />

            <condition attribute='accessrightsmask' operator='ne' value='0' />

          </filter>

        </link-entity>

      </entity>

    </fetch>

    www.credera.com/.../crm-2011-creating-view-records-shared-user

    Dynamica Labs http://dynamicalabs.com/

    Disclaimer:

    Any post on this page provided "as is" without warranty of any kind and is for educational and information purposes only. We disclaim any liability arising from any reliance placed on any post.

  • Thomas David Dayman Profile Picture
    11,323 on at

    That worked! Thanks :)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans