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)

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

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