<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How can I find team members with certain team roles with XPath?</title><link>https://www.aras.com/community/f/development/3574/how-can-i-find-team-members-with-certain-team-roles-with-xpath</link><description>Hi,
I have a Team with various members and roles and want to filter the query result by the roles:

Team
&amp;gt; Team Member
&amp;gt;&amp;gt; team_role -&amp;gt; Identity = shall be used as filter, e.g. filter all Team Managers
&amp;gt;&amp;gt; related_id -&amp;gt; Identity -&amp;gt; shall be returned

Since</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: How can I find team members with certain team roles with XPath?</title><link>https://www.aras.com/community/thread/1390?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2018 09:54:54 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:a2c23513-5050-49b1-ba13-4f6937e350c7</guid><dc:creator>Eli Donahue</dc:creator><description>Hi Angela,

Glad it helped! For future use, here&amp;#39;s the tool I use for testing XPath: &lt;a href="https://codebeautify.org/Xpath-Tester"&gt;https://codebeautify.org/Xpath-Tester&lt;/a&gt;. It&amp;#39;s much easier to test different XPath expressions against some AML/XML in the tool than re-run a server method every time you tweak your XPath. :)

Eli

&lt;hr /&gt;

Eli Donahue

Aras Labs Software Engineer&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find team members with certain team roles with XPath?</title><link>https://www.aras.com/community/thread/1389?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2018 07:48:40 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:eb889cb6-7c41-4822-8f0e-0685c21744fd</guid><dc:creator>AngelaIp</dc:creator><description>Thanks Eli for the follow-up! So far, I have used many separate AML queries, which was very slow and inefficient. Now the query is 100 times faster!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find team members with certain team roles with XPath?</title><link>https://www.aras.com/community/thread/1381?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2018 15:49:38 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:86298564-98cf-4b82-b47a-8e94fb581c35</guid><dc:creator>Eli Donahue</dc:creator><description>Hi Angela,

I think this XPath should retrieve the Identity of the team member based on role. The example below gets the Team Manager(s) on a team.
&lt;pre&gt;//Item[team_role/@keyed_name="&lt;strong&gt;Team Manager&lt;/strong&gt;"]/related_id/Item&lt;/pre&gt;
Eli

&lt;hr /&gt;

Eli Donahue

Aras Labs Software Engineer&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>