<?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: How to retrieve Change Activity Sequence without SQL (Windchill Change Planning)? in Windchill Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-retrieve-Change-Activity-Sequence-without-SQL-Windchill/m-p/1054410#M11063</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/895528"&gt;@SP_12330653&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can use this :&lt;/P&gt;&lt;LI-CODE lang="java"&gt;String sequenceNumber = (String) ChangePlanningHelper.getService().getExecutionValues(changeNotice).get(task);&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Imad_A_0-1770729974700.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134528iF547BD087DFD4819/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Imad_A_0-1770729974700.png" alt="Imad_A_0-1770729974700.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;        String CNNumber = "CHN00000001";
        String taskNumber = "00001";

        
        WTChangeActivity2 task =null;
        WTChangeOrder2 changeNotice = null;

        QuerySpec qs = new QuerySpec(WTChangeOrder2.class);
        qs.appendWhere(new SearchCondition(WTChangeOrder2.class, WTChangeOrder2.NUMBER, 
        		SearchCondition.EQUAL,CNNumber , false),new int[] { 0 });
        QueryResult results = PersistenceHelper.manager.find(qs);
        if (results.hasMoreElements()) {
        	changeNotice = (WTChangeOrder2) results.nextElement();
        }
        
        
        
     	QuerySpec qstask = new QuerySpec(WTChangeActivity2.class);
     	qstask.appendWhere(new SearchCondition(WTChangeActivity2.class,WTChangeActivity2.NUMBER, 
				SearchCondition.EQUAL, taskNumber),new int[] { 0 });
		
        QueryResult resultsTasks = PersistenceHelper.manager.find(qstask);
        if (resultsTasks.hasMoreElements()) {
        	task = (WTChangeActivity2) resultsTasks.nextElement();
        }
        
    
      String sequenceNumber = (String) ChangePlanningHelper.getService().getExecutionValues(changeNotice).get(task);
    &lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Feb 2026 13:33:36 GMT</pubDate>
    <dc:creator>Imad_A</dc:creator>
    <dc:date>2026-02-10T13:33:36Z</dc:date>
    <item>
      <title>How to retrieve Change Activity Sequence without SQL (Windchill Change Planning)?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-retrieve-Change-Activity-Sequence-without-SQL-Windchill/m-p/1054376#M11057</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;I need to programmatically retrieve the &lt;STRONG&gt;Sequence&lt;/STRONG&gt; value of a Change Activity (WTChangeActivity2) as it appears in the Change Planning / Execution Plan. Currently, the only method that works is executing a direct SQL query on the CHANGEPLANACTIVITY table.&lt;/P&gt;&lt;P&gt;Example SQL (working):&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;!--     ScriptorStartFragment     --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;SELECT parent.SEQUENCE&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;FROM WTCHANGEACTIVITY2MASTER cam&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;JOIN WTCHANGEACTIVITY2 ca&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON ca.IDA3MASTERREFERENCE = cam.IDA2A2&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;JOIN CHANGEPLANNINGLINK cpl&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON cpl.BRANCHIDA3B5 = ca.BRANCHIDITERATIONINFO&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;JOIN CHANGEPLANACTIVITY cpa&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON cpa.IDA2A2 = cpl.IDA3A5&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;LEFT JOIN CHANGEPLANACTIVITY parent&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON parent.IDA2A2 = cpa.IDA3PARENTREFERENCE&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;WHERE cam.WTCHGACTIVITYNUMBER = ?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;P&gt;However, this is not a supported API approach, and I want to avoid SQL.&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;I also tried using:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;SPAN&gt;&lt;!--     ScriptorStartFragment     --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;ChangePlanningHelper.modifyPlan(...)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Map&amp;lt;VersionableChangeItem, String&amp;gt; changeSeqMap&lt;!--     ScriptorEndFragment     --&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;But this map only &lt;STRONG&gt;accepts&lt;/STRONG&gt; sequence values for updates — it does &lt;STRONG&gt;not&lt;/STRONG&gt; expose or return the current sequence.&lt;BR /&gt;changeSeqMap.get(ca) always returns null.&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SP_12330653_0-1770717431137.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134521i82397C0FB7D5B73D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SP_12330653_0-1770717431137.png" alt="SP_12330653_0-1770717431137.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;H3&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;Is there any &lt;STRONG&gt;supported Windchill Java API&lt;/STRONG&gt; (ChangePlanningHelper, ChangeHelper2, WTChangeActivity2, Info*Engine, etc.) that allows retrieving a Change Activity’s &lt;STRONG&gt;sequence number&lt;/STRONG&gt; without using SQL?&lt;/P&gt;&lt;P&gt;If yes, please provide an example.&lt;BR /&gt;If not, can PTC confirm that SQL is the only available method?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 Feb 2026 09:57:19 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-retrieve-Change-Activity-Sequence-without-SQL-Windchill/m-p/1054376#M11057</guid>
      <dc:creator>SP_12330653</dc:creator>
      <dc:date>2026-02-10T09:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve Change Activity Sequence without SQL (Windchill Change Planning)?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-retrieve-Change-Activity-Sequence-without-SQL-Windchill/m-p/1054383#M11059</link>
      <description>&lt;P&gt;Try this REST get :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fadel_0-1770719588759.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134522iC5226D18F03E09B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fadel_0-1770719588759.png" alt="Fadel_0-1770719588759.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV class="request-url"&gt;
&lt;PRE class="microlight"&gt;&lt;A href="https://PP-2409261413WB.portal.ptc.io:443/Windchill/servlet/odata/v6/ChangeMgmt/ChangeTasks?%24select=ID%2CSequence&amp;amp;%24filter=Number%20eq%20'00509'&amp;amp;%24count=false" target="_blank"&gt;&amp;lt;Server&amp;gt;:443/Windchill/servlet/odata/v6/ChangeMgmt/ChangeTasks?%24select=ID%2CSequence&amp;amp;%24filter=Number%20eq%20'00509'&amp;amp;%24count=false&lt;/A&gt; &lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 Feb 2026 10:33:15 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-retrieve-Change-Activity-Sequence-without-SQL-Windchill/m-p/1054383#M11059</guid>
      <dc:creator>Fadel</dc:creator>
      <dc:date>2026-02-10T10:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve Change Activity Sequence without SQL (Windchill Change Planning)?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-retrieve-Change-Activity-Sequence-without-SQL-Windchill/m-p/1054384#M11060</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/895528"&gt;@SP_12330653&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;There is a API getSequence() in&amp;nbsp;ChangePlanActivity.&lt;/P&gt;
&lt;P&gt;Could you check?&lt;/P&gt;
&lt;DIV&gt;&lt;LI-CODE lang="java"&gt;changePlanActivity.getSequence();&lt;/LI-CODE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 Feb 2026 10:36:30 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-retrieve-Change-Activity-Sequence-without-SQL-Windchill/m-p/1054384#M11060</guid>
      <dc:creator>TDT</dc:creator>
      <dc:date>2026-02-10T10:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve Change Activity Sequence without SQL (Windchill Change Planning)?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-retrieve-Change-Activity-Sequence-without-SQL-Windchill/m-p/1054408#M11062</link>
      <description>&lt;P&gt;There is no changePlanActivity.class in Windchill.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 13:12:33 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-retrieve-Change-Activity-Sequence-without-SQL-Windchill/m-p/1054408#M11062</guid>
      <dc:creator>SP_12330653</dc:creator>
      <dc:date>2026-02-10T13:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve Change Activity Sequence without SQL (Windchill Change Planning)?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-retrieve-Change-Activity-Sequence-without-SQL-Windchill/m-p/1054410#M11063</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/895528"&gt;@SP_12330653&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can use this :&lt;/P&gt;&lt;LI-CODE lang="java"&gt;String sequenceNumber = (String) ChangePlanningHelper.getService().getExecutionValues(changeNotice).get(task);&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Imad_A_0-1770729974700.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134528iF547BD087DFD4819/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Imad_A_0-1770729974700.png" alt="Imad_A_0-1770729974700.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;        String CNNumber = "CHN00000001";
        String taskNumber = "00001";

        
        WTChangeActivity2 task =null;
        WTChangeOrder2 changeNotice = null;

        QuerySpec qs = new QuerySpec(WTChangeOrder2.class);
        qs.appendWhere(new SearchCondition(WTChangeOrder2.class, WTChangeOrder2.NUMBER, 
        		SearchCondition.EQUAL,CNNumber , false),new int[] { 0 });
        QueryResult results = PersistenceHelper.manager.find(qs);
        if (results.hasMoreElements()) {
        	changeNotice = (WTChangeOrder2) results.nextElement();
        }
        
        
        
     	QuerySpec qstask = new QuerySpec(WTChangeActivity2.class);
     	qstask.appendWhere(new SearchCondition(WTChangeActivity2.class,WTChangeActivity2.NUMBER, 
				SearchCondition.EQUAL, taskNumber),new int[] { 0 });
		
        QueryResult resultsTasks = PersistenceHelper.manager.find(qstask);
        if (resultsTasks.hasMoreElements()) {
        	task = (WTChangeActivity2) resultsTasks.nextElement();
        }
        
    
      String sequenceNumber = (String) ChangePlanningHelper.getService().getExecutionValues(changeNotice).get(task);
    &lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 13:33:36 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-retrieve-Change-Activity-Sequence-without-SQL-Windchill/m-p/1054410#M11063</guid>
      <dc:creator>Imad_A</dc:creator>
      <dc:date>2026-02-10T13:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve Change Activity Sequence without SQL (Windchill Change Planning)?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-retrieve-Change-Activity-Sequence-without-SQL-Windchill/m-p/1054420#M11064</link>
      <description>&lt;P&gt;Which version are you using?&lt;/P&gt;
&lt;P&gt;The Class is available in version 13.0&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TDT_0-1770732081944.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134534i81684F30A9652AE2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TDT_0-1770732081944.png" alt="TDT_0-1770732081944.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 14:03:07 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-retrieve-Change-Activity-Sequence-without-SQL-Windchill/m-p/1054420#M11064</guid>
      <dc:creator>TDT</dc:creator>
      <dc:date>2026-02-10T14:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve Change Activity Sequence without SQL (Windchill Change Planning)?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-retrieve-Change-Activity-Sequence-without-SQL-Windchill/m-p/1054428#M11068</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/895528"&gt;@SP_12330653&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes there is .&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HelesicPetr_1-1770733207960.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134536i54F8C1BFEC9A28D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HelesicPetr_1-1770733207960.png" alt="HelesicPetr_1-1770733207960.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HelesicPetr_0-1770733183794.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134535i2769CA4E8EBE75D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HelesicPetr_0-1770733183794.png" alt="HelesicPetr_0-1770733183794.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You just need to install a Project Link.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the class is definitely available in Windchill 11.+ I do not have earlier versions now &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PetrH&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 14:25:35 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-retrieve-Change-Activity-Sequence-without-SQL-Windchill/m-p/1054428#M11068</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2026-02-10T14:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve Change Activity Sequence without SQL (Windchill Change Planning)?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-retrieve-Change-Activity-Sequence-without-SQL-Windchill/m-p/1054456#M11069</link>
      <description>&lt;P&gt;Thanks, it Worked.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 17:41:32 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-retrieve-Change-Activity-Sequence-without-SQL-Windchill/m-p/1054456#M11069</guid>
      <dc:creator>SP_12330653</dc:creator>
      <dc:date>2026-02-10T17:41:32Z</dc:date>
    </item>
  </channel>
</rss>

