0 Replies Latest reply on Jan 13, 2022 8:20 PM by Triston Sang

    rest:pathInfo does not work when using startIndex param to get pagingnating data

    Triston Sang New Member

      Hello expert,

       

      We try to Use ActiveVos to get report data from PIM with Rest List API, but it doesn't look like work.

       

      The part of instance data:

       

      <part name="RESTRequest">
        
      <aetgt:RESTRequest xmlns:aetgt="http://schemas.activebpel.org/REST/2007/12/01/aeREST.xsd"
                           
      xmlns:rest="http://schemas.activebpel.org/REST/2007/12/01/aeREST.xsd">
           
      <rest:method>GET</rest:method>
           
      <rest:pathInfo>rest/V1.0/list/StructureGroup/byReportId?reportId=759718&amp;startIndex=10&amp;dataSource=PCM_MAIN&amp;pageSize=10&amp;fields=StructureGroup.Identifier,StructureGroup.ParentIdentifier,StructureGroupLang.Name(en),StructureGroup.LastModified</rest:pathInfo>
           
      <rest:headers>
              
      <rest:header name="Content-Type" value="application/json"/>
              
      <rest:header name="accept" value="application/xml"/>
           
      </rest:headers>
           
      <rest:locales>
              
      <rest:locale country="US" lang="en">en_US</rest:locale>
           
      </rest:locales>
        
      </aetgt:RESTRequest>
      </part>

       

      We also tried using rest:param tag, it doesn't work either. It alays return the first page of data and ignore the startIndex and pageSize. We use ActiveVos 9.2.4.3 (6252.016) and PIM 10.1.2

       

      Would you please share with me the correct way to get pagenating data or any workarounds?

       

      Thank you very much.