<?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>Question Re: CPI: MessageProcessingLogs API Query Issue in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/cpi-messageprocessinglogs-api-query-issue/qaa-p/12591651#M4722241</link>
    <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;babruvahana&lt;/SPAN&gt; &lt;BR /&gt;&lt;BR /&gt;The  &lt;EM&gt;"__next"&lt;/EM&gt; field contains the URL that your program should invoke next if you want to extract more records. That said, that URL specifies a  "&lt;EM&gt;$skiptoken&lt;/EM&gt;" as a query parameter and if we look at the API documentation (screenshot below), there is no such query param. The correct query param is "&lt;EM&gt;$skip&lt;/EM&gt;". Can you please try your request specifying "&lt;EM&gt;$skip&lt;/EM&gt;" instead of "&lt;EM&gt;$skiptoken&lt;/EM&gt;".&lt;/P&gt;&lt;P&gt;Example request:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;curl --location --request GET 'https://antonio-maradiaga-free-tier-aaq3l49g.it-cpi018.cfapps.eu10-003.hana.ondemand.com/api/v1/MessageProcessingLogs?$filter=LogStart ge datetime'\''2022-07-01T00:00:00'\''&amp;amp;$inlinecount=allpages&amp;amp;$skip=10' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsImprdSI6Imh0'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2069600-screenshot-2022-07-04-at-192411.png" /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jul 2022 17:36:40 GMT</pubDate>
    <dc:creator>ajmaradiaga</dc:creator>
    <dc:date>2022-07-04T17:36:40Z</dc:date>
    <item>
      <title>CPI: MessageProcessingLogs API Query Issue</title>
      <link>https://community.sap.com/t5/technology-q-a/cpi-messageprocessinglogs-api-query-issue/qaq-p/12591649</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt;My requirement needs to fetch the CPI &lt;STRONG&gt;MessageProcessingLogs&lt;/STRONG&gt; every 15 minutes.&lt;/P&gt;
  &lt;P&gt;The API fetching 1000 records in call. I used $skiptoken=1000 to fetch the next 1000 records. &lt;/P&gt;
  &lt;P&gt;But this is working inconsistently as the API doesn't give the next set of 1000 records every time.&lt;/P&gt;
  &lt;P&gt;I would like to know is there any way we can fetch all the records.&lt;/P&gt;
  &lt;P&gt;Any leads will be really helpful.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2070603-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2070604-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Pavan&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 13:10:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cpi-messageprocessinglogs-api-query-issue/qaq-p/12591649</guid>
      <dc:creator>babruvahana</dc:creator>
      <dc:date>2022-07-04T13:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: CPI: MessageProcessingLogs API Query Issue</title>
      <link>https://community.sap.com/t5/technology-q-a/cpi-messageprocessinglogs-api-query-issue/qaa-p/12591650#M4722240</link>
      <description>&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;Try to get data in batches -looping process call.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 13:32:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cpi-messageprocessinglogs-api-query-issue/qaa-p/12591650#M4722240</guid>
      <dc:creator>AdityaMani51</dc:creator>
      <dc:date>2022-07-04T13:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: CPI: MessageProcessingLogs API Query Issue</title>
      <link>https://community.sap.com/t5/technology-q-a/cpi-messageprocessinglogs-api-query-issue/qaa-p/12591651#M4722241</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;babruvahana&lt;/SPAN&gt; &lt;BR /&gt;&lt;BR /&gt;The  &lt;EM&gt;"__next"&lt;/EM&gt; field contains the URL that your program should invoke next if you want to extract more records. That said, that URL specifies a  "&lt;EM&gt;$skiptoken&lt;/EM&gt;" as a query parameter and if we look at the API documentation (screenshot below), there is no such query param. The correct query param is "&lt;EM&gt;$skip&lt;/EM&gt;". Can you please try your request specifying "&lt;EM&gt;$skip&lt;/EM&gt;" instead of "&lt;EM&gt;$skiptoken&lt;/EM&gt;".&lt;/P&gt;&lt;P&gt;Example request:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;curl --location --request GET 'https://antonio-maradiaga-free-tier-aaq3l49g.it-cpi018.cfapps.eu10-003.hana.ondemand.com/api/v1/MessageProcessingLogs?$filter=LogStart ge datetime'\''2022-07-01T00:00:00'\''&amp;amp;$inlinecount=allpages&amp;amp;$skip=10' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsImprdSI6Imh0'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2069600-screenshot-2022-07-04-at-192411.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 17:36:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cpi-messageprocessinglogs-api-query-issue/qaa-p/12591651#M4722241</guid>
      <dc:creator>ajmaradiaga</dc:creator>
      <dc:date>2022-07-04T17:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: CPI: MessageProcessingLogs API Query Issue</title>
      <link>https://community.sap.com/t5/technology-q-a/cpi-messageprocessinglogs-api-query-issue/qaa-p/12591652#M4722242</link>
      <description>&lt;P&gt;Hello Pawan,&lt;/P&gt;&lt;P&gt;Looks like there some config in adapter that you did not mentioned here since 1000 max page size.&lt;/P&gt;&lt;P&gt;Pls try below options:&lt;/P&gt;&lt;P&gt;1.Make use of server side pagination at odata adapter instead client side pagination which is currently you are     using ( $skip).&lt;/P&gt;&lt;P&gt;2.Use lookup process call with standard property(you can check property name with trace which will have value true or false) to end looping process call.&lt;/P&gt;&lt;P&gt;Hope this will be helpful to you.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 18:26:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cpi-messageprocessinglogs-api-query-issue/qaa-p/12591652#M4722242</guid>
      <dc:creator>YuvrajKarwar</dc:creator>
      <dc:date>2022-07-04T18:26:55Z</dc:date>
    </item>
  </channel>
</rss>

