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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Connections count

(0) ShareShare
ReportReport
Posted on by 27

Is it possible to count how many "Knows" connections a contact has using the Advance Find function?  I'd like to report how many contacts only have 1 connection.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Kokulan Profile Picture
    18,054 on at
    RE: Connections count

    Hi

    You could download the XrmToolBox from this link : [View:https://www.xrmtoolbox.com/:750:50]

    Use the FetchXMLBuilder to run the above query

    ScreenClip-_5B00_290_5D00_.png

  • AnnaCoombs Profile Picture
    27 on at
    RE: Connections count

    Thanks for your response - I dont know how to start a new FETCH query?

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at
    RE: Connections count

    You could use FETCH query to get the count, see the example below

    <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true" aggregate="true" >
    <entity name="connection" >
    <attribute name="connectionid" aggregate="countcolumn" alias="countConnections" distinct="true" />
    <filter type="and" >
    <condition attribute="record1roleid" operator="eq" uiname="connetion role" uitype="connectionrole" value="{8899231D-1514-423C-A06B-BF269558200A}" />
    </filter>
    <link-entity name="contact" from="contactid" to="record1id" link-type="inner" alias="aa" >
    <filter type="and" >
    <condition attribute="contactid" operator="eq" uiname="contact name" uitype="contact" value="{25A17064-1AE7-E611-80F4-E0071B661F01}" />
    </filter>
    </link-entity>
    </entity>
    </fetch>

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans