<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Use QuerySpec to find latest revision in Windchill Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Use-QuerySpec-to-find-latest-revision/m-p/838492#M2424</link>
    <description>&lt;P&gt;How complex is your QuerySpec? Perhaps you can break it up a bit. If you have a WTPart, it can be passed to the VersionControlHelper class to get all versions. The method below will&lt;/P&gt;
&lt;PRE&gt;&lt;A title="class in wt.fc" href="https://pdmlink.dmtllc.local/Windchill/wt/clients/library/api/wt/fc/QueryResult.html" target="_blank"&gt;QueryResult&lt;/A&gt;&amp;nbsp;allVersionsFrom(&lt;A title="interface in wt.vc" href="https://pdmlink.dmtllc.local/Windchill/wt/clients/library/api/wt/vc/Versioned.html" target="_blank"&gt;Versioned&lt;/A&gt;&amp;nbsp;version)
                     throws &lt;A title="class in wt.util" href="https://pdmlink.dmtllc.local/Windchill/wt/clients/library/api/wt/util/WTException.html" target="_blank"&gt;WTException&lt;/A&gt;,
                            &lt;A title="class in wt.pom" href="https://pdmlink.dmtllc.local/Windchill/wt/clients/library/api/wt/pom/PersistenceException.html" target="_blank"&gt;PersistenceException&lt;/A&gt;&lt;/PRE&gt;
&lt;DIV class="block"&gt;Finds all of the versions of a master from the first one created to the given version. The result is an ordered list of versions (i.e., latest iterations) from the given iteration to the first one created. For example, if version C is given, the list returned is C, B, A.&lt;/DIV&gt;
&lt;DIV class="block"&gt;This can be done with WTPartMasters too:&lt;/DIV&gt;
&lt;DIV class="block"&gt;
&lt;H4&gt;allVersionsOf&lt;/H4&gt;
&lt;PRE&gt;&lt;A title="class in wt.fc" href="https://pdmlink.dmtllc.local/Windchill/wt/clients/library/api/wt/fc/QueryResult.html" target="_blank"&gt;QueryResult&lt;/A&gt;&amp;nbsp;allVersionsOf(&lt;A title="interface in wt.vc" href="https://pdmlink.dmtllc.local/Windchill/wt/clients/library/api/wt/vc/Mastered.html" target="_blank"&gt;Mastered&lt;/A&gt;&amp;nbsp;master)
                   throws &lt;A title="class in wt.util" href="https://pdmlink.dmtllc.local/Windchill/wt/clients/library/api/wt/util/WTException.html" target="_blank"&gt;WTException&lt;/A&gt;,
                          &lt;A title="class in wt.pom" href="https://pdmlink.dmtllc.local/Windchill/wt/clients/library/api/wt/pom/PersistenceException.html" target="_blank"&gt;PersistenceException&lt;/A&gt;&lt;/PRE&gt;
&lt;DIV class="block"&gt;Finds all of the versions of the given master. The result is an ordered list of versions (i.e., latest iterations) from the most recent one to the first one created, e.g. (B, A).&lt;/DIV&gt;
&lt;DIV class="block"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="block"&gt;You just need to take the first one that returns and it will be the latest version.&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 16 Nov 2022 12:45:54 GMT</pubDate>
    <dc:creator>avillanueva</dc:creator>
    <dc:date>2022-11-16T12:45:54Z</dc:date>
    <item>
      <title>Use QuerySpec to find latest revision</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Use-QuerySpec-to-find-latest-revision/m-p/838480#M2423</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently using a Query Spec to look for all WTParts that match a specific query (query for name or number).&lt;/P&gt;&lt;P&gt;I am also applying a SearchCondition with Iterated.LATEST_ITERATION = true to look for the latest iteration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;spec.appendWhere(new SearchCondition(WTPart.class, Iterated.LATEST_ITERATION, SearchCondition.IS_TRUE), new int[]{index});&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am now trying to expand the query by a latest revision filter since with the Iterated.LATEST_ITERATION = true it returns the latest iterations of all revisions but I only need the latest iteration of the latest revision of this part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the Windchill Search I was able to do exaclty this but I need this as a Java Query. You can see the required functionality in this picture.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FS_10272716_0-1668600800100.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/71007i4B09E26D9FC18EE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FS_10272716_0-1668600800100.png" alt="FS_10272716_0-1668600800100.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 14:05:23 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Use-QuerySpec-to-find-latest-revision/m-p/838480#M2423</guid>
      <dc:creator>TG_10272716</dc:creator>
      <dc:date>2024-03-15T14:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Use QuerySpec to find latest revision</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Use-QuerySpec-to-find-latest-revision/m-p/838492#M2424</link>
      <description>&lt;P&gt;How complex is your QuerySpec? Perhaps you can break it up a bit. If you have a WTPart, it can be passed to the VersionControlHelper class to get all versions. The method below will&lt;/P&gt;
&lt;PRE&gt;&lt;A title="class in wt.fc" href="https://pdmlink.dmtllc.local/Windchill/wt/clients/library/api/wt/fc/QueryResult.html" target="_blank"&gt;QueryResult&lt;/A&gt;&amp;nbsp;allVersionsFrom(&lt;A title="interface in wt.vc" href="https://pdmlink.dmtllc.local/Windchill/wt/clients/library/api/wt/vc/Versioned.html" target="_blank"&gt;Versioned&lt;/A&gt;&amp;nbsp;version)
                     throws &lt;A title="class in wt.util" href="https://pdmlink.dmtllc.local/Windchill/wt/clients/library/api/wt/util/WTException.html" target="_blank"&gt;WTException&lt;/A&gt;,
                            &lt;A title="class in wt.pom" href="https://pdmlink.dmtllc.local/Windchill/wt/clients/library/api/wt/pom/PersistenceException.html" target="_blank"&gt;PersistenceException&lt;/A&gt;&lt;/PRE&gt;
&lt;DIV class="block"&gt;Finds all of the versions of a master from the first one created to the given version. The result is an ordered list of versions (i.e., latest iterations) from the given iteration to the first one created. For example, if version C is given, the list returned is C, B, A.&lt;/DIV&gt;
&lt;DIV class="block"&gt;This can be done with WTPartMasters too:&lt;/DIV&gt;
&lt;DIV class="block"&gt;
&lt;H4&gt;allVersionsOf&lt;/H4&gt;
&lt;PRE&gt;&lt;A title="class in wt.fc" href="https://pdmlink.dmtllc.local/Windchill/wt/clients/library/api/wt/fc/QueryResult.html" target="_blank"&gt;QueryResult&lt;/A&gt;&amp;nbsp;allVersionsOf(&lt;A title="interface in wt.vc" href="https://pdmlink.dmtllc.local/Windchill/wt/clients/library/api/wt/vc/Mastered.html" target="_blank"&gt;Mastered&lt;/A&gt;&amp;nbsp;master)
                   throws &lt;A title="class in wt.util" href="https://pdmlink.dmtllc.local/Windchill/wt/clients/library/api/wt/util/WTException.html" target="_blank"&gt;WTException&lt;/A&gt;,
                          &lt;A title="class in wt.pom" href="https://pdmlink.dmtllc.local/Windchill/wt/clients/library/api/wt/pom/PersistenceException.html" target="_blank"&gt;PersistenceException&lt;/A&gt;&lt;/PRE&gt;
&lt;DIV class="block"&gt;Finds all of the versions of the given master. The result is an ordered list of versions (i.e., latest iterations) from the most recent one to the first one created, e.g. (B, A).&lt;/DIV&gt;
&lt;DIV class="block"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="block"&gt;You just need to take the first one that returns and it will be the latest version.&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 16 Nov 2022 12:45:54 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Use-QuerySpec-to-find-latest-revision/m-p/838492#M2424</guid>
      <dc:creator>avillanueva</dc:creator>
      <dc:date>2022-11-16T12:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Use QuerySpec to find latest revision</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Use-QuerySpec-to-find-latest-revision/m-p/838526#M2425</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/557258"&gt;@TG_10272716&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To query the object with latest revision and iteration you can use following query :&lt;/P&gt;
&lt;P&gt;example works with WTParts&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;public static WTPart getPartLatestIterationBySubQuery(String partNumber)
{

 Class targetClass = wt.part.WTPart.class;
 try
 {
  QuerySpec subSelect = new QuerySpec();

  subSelect.getFromClause().setAliasPrefix("B");      //sub FROM
  int subIndex = subSelect.appendClassList(targetClass, false);
  int[] fromIndicies = {subIndex};
  ClassAttribute branchIDAtt = new ClassAttribute(targetClass, WTPart.BRANCH_IDENTIFIER);  // IMPORTANT: SUB SELECT has to have own new CLASS ATTRIBUTE
  SQLFunction maxFunction = SQLFunction.newSQLFunction(SQLFunction.MAXIMUM,
                             branchIDAtt);
  subSelect.appendSelect(maxFunction, fromIndicies, false);      //sub SELECT
  ClassAttribute numberAtt = new ClassAttribute(targetClass, WTPart.NUMBER);
  RelationalExpression theExpression = ConstantExpression.newExpression(partNumber, numberAtt.getColumnDescriptor().getJavaType());
  SearchCondition theCondition = new SearchCondition(numberAtt, SearchCondition.EQUAL, theExpression);
  subSelect.appendWhere(theCondition);    //sub WHERE

  //wt.query.ConditionsClause.
  QuerySpec select = new QuerySpec();
  int index = select.appendClassList(targetClass, true);
  ClassAttribute brID = new ClassAttribute(targetClass, WTPart.BRANCH_IDENTIFIER); // IMPORTANT: SUB SELECT has to have own new CLASS ATTRIBUTE
  select.appendWhere(new SearchCondition(brID, SearchCondition.IN,
                      new SubSelectExpression(subSelect))
      , new int[]{index});
  select.appendAnd();
  ClassAttribute lastIter = new ClassAttribute(targetClass, WTPart.LATEST_ITERATION); // IMPORTANT: SUB SELECT has to have own new CLASS ATTRIBUTE
  select.appendWhere(new SearchCondition(lastIter, SearchCondition.IS_TRUE));
  select.setAdvancedQueryEnabled(true);//velmi dulezite nastavit advanced

  QueryResult qr = PersistenceServerHelper.manager.query((StatementSpec) select);

  while (qr.hasMoreElements())
  {
   Object[] nextObj = (Object[]) qr.nextElement();
   return (WTPart) nextObj[0];
  }
 } catch (WTPropertyVetoException e)
 {
  e.printStackTrace();
 } catch (PersistenceException e)
 {
  e.printStackTrace();
 } catch (QueryException e)
 {
  e.printStackTrace();
 } catch (WTException e)
 {
  e.printStackTrace();
 }
 return null;
}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This code is little bit faster then control all revisions one by one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this can help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PetrH&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 14:05:51 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Use-QuerySpec-to-find-latest-revision/m-p/838526#M2425</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2022-11-16T14:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Use QuerySpec to find latest revision</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Use-QuerySpec-to-find-latest-revision/m-p/839414#M2426</link>
      <description>&lt;P&gt;Thank you for your reply &lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/27334"&gt;@avillanueva&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that i somehow need to include this in the database query because i also specify a query limit and this way I would query for lets say 50 parts which is my current query limit, but then I only take 10 of the parts because all other are not the newest version and then the query limit would not make sense.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 11:56:37 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Use-QuerySpec-to-find-latest-revision/m-p/839414#M2426</guid>
      <dc:creator>TG_10272716</dc:creator>
      <dc:date>2022-11-21T11:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Use QuerySpec to find latest revision</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Use-QuerySpec-to-find-latest-revision/m-p/839421#M2427</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/241117"&gt;@HelesicPetr&lt;/a&gt;, your query does exactly what I need, not I will try to merge it with my query to make it work. Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 12:44:07 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Use-QuerySpec-to-find-latest-revision/m-p/839421#M2427</guid>
      <dc:creator>TG_10272716</dc:creator>
      <dc:date>2022-11-21T12:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Use QuerySpec to find latest revision</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Use-QuerySpec-to-find-latest-revision/m-p/839447#M2428</link>
      <description>&lt;P&gt;Hello &lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/241117"&gt;@HelesicPetr&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;while implementing my search conditions i realized that the code posted by you only returns one part of each type - in my case this returns a maximum of one article and one manufacturer part. However I am using a SearchCondition.LIKE with "%"+name+"%" to query for all matches of the name. I tried to figure it out but it won't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case it should query for all parts that have a match with the search query and return only the latest version (like in your code but for all matches)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do it, is this only a small change to your code or does this require a totally different structure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 14:21:23 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Use-QuerySpec-to-find-latest-revision/m-p/839447#M2428</guid>
      <dc:creator>TG_10272716</dc:creator>
      <dc:date>2022-11-21T14:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Use QuerySpec to find latest revision</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Use-QuerySpec-to-find-latest-revision/m-p/839474#M2429</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/557258"&gt;@TG_10272716&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The select works only for specific one number.&lt;/P&gt;
&lt;P&gt;If you need to use LIKE the query needs to be rewritten.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PetrH&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 15:42:30 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Use-QuerySpec-to-find-latest-revision/m-p/839474#M2429</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2022-11-21T15:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Use QuerySpec to find latest revision</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Use-QuerySpec-to-find-latest-revision/m-p/839812#M2430</link>
      <description>&lt;P&gt;Hello &lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/241117"&gt;@HelesicPetr&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you give me a hint how to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 06:17:24 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Use-QuerySpec-to-find-latest-revision/m-p/839812#M2430</guid>
      <dc:creator>TG_10272716</dc:creator>
      <dc:date>2022-11-23T06:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Use QuerySpec to find latest revision</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Use-QuerySpec-to-find-latest-revision/m-p/839830#M2431</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/557258"&gt;@TG_10272716&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The hint is that you need to rebuild the condition with number (or name whateever).&amp;nbsp; It should looks like as you create subselect in a query builder to filter latest revision.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now the number condition is in the subselect and search for max value of the BRANCH_IDENTIFIER and the given number together so only one row is returned.&lt;/P&gt;
&lt;P&gt;You need to define the condition with number in normal select and set condition for subselect where WTPARTnumber from select equal WTPARTnumber from SUBselect.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know generally how to create select in database, but it is complicated to rewrite it to&amp;nbsp;QuerySpec because it is not documented.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for that. If I had more time to help you I would.&lt;/P&gt;
&lt;P&gt;My example of QuerySpec is created based on following select&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;select * from wcuser.WTPart A0
where A0.latestiterationInfo=1
and A0.branchIditerationInfo in (SELECT MAX(B0.branchIditerationInfo) as branchID FROM wcuser.WTPart B0 INNER JOIN wcuser.WTPartMaster B0B ON (B0.idA3masterReference = B0B.idA2A2) WHERE ((B0B.WTPartNumber LIKE N'MV%')))

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example of final select what you need&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This select should be rewrite to&amp;nbsp;&amp;nbsp;QuerySpec.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SELECT A0B.WTPartNumber 
FROM wcuser.WTPart A0 INNER JOIN wcuser.WTPartMaster A0B ON (A0.idA3masterReference = A0B.idA2A2) 
WHERE ((A0.latestiterationInfo = 1) AND 
A0.versionSortIdA2versionInfo IN (SELECT MAX(AA0.versionSortIdA2versionInfo)
FROM wcuser.WTPart AA0 INNER JOIN wcuser.WTPartMaster AA0B ON (AA0.idA3masterReference = AA0B.idA2A2) 
WHERE ((AA0B.WTPartNumber = A0B.WTPartNumber)))) and A0B.WTPartNumber like N'MV%'
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: in the last sql select example I use versionSortIdA2versionInfo instead of BRANCH_IDENTIFIER&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PetrH&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 07:10:35 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Use-QuerySpec-to-find-latest-revision/m-p/839830#M2431</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2022-11-23T07:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Use QuerySpec to find latest revision</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Use-QuerySpec-to-find-latest-revision/m-p/839840#M2432</link>
      <description>&lt;P&gt;Hello &lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/241117"&gt;@HelesicPetr&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your help, I would not have been able to solve this without you,&amp;nbsp; I was able to achieve the desired result by rewriting the search condition for number and adding one for name and using a group by on NAME.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 07:33:53 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Use-QuerySpec-to-find-latest-revision/m-p/839840#M2432</guid>
      <dc:creator>TG_10272716</dc:creator>
      <dc:date>2022-11-23T07:33:53Z</dc:date>
    </item>
  </channel>
</rss>

