<?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: HCI Odata API dynamic query in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/hci-odata-api-dynamic-query/qaa-p/686536#M183386</link>
    <description>&lt;P&gt;Hello Sudarvizhi,&lt;/P&gt;&lt;P&gt;Add content modifier&lt;STRONG&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/STRONG&gt;just before your request reply and set the header [ For Ex &lt;STRONG&gt;&lt;EM&gt;topval ] &lt;/EM&gt;&lt;/STRONG&gt;with whatever value you need and call the same in your channel like below&lt;/P&gt;&lt;P&gt;&lt;A href="https://xxxxxx.s4hana.ondemand.com/sap/opu/odata/sap/API_MKT_CAMPAIGN_SRV/Campaigns"&gt;https://xxxxxx.s4hana.ondemand.com/sap/opu/odata/sap/API_MKT_CAMPAIGN_SRV/Campaigns&lt;/A&gt;?$&lt;STRONG&gt;&lt;EM&gt;top=${header.topval}&lt;/EM&gt;&lt;/STRONG&gt;&amp;amp;$filter=CampaignCategory eq 'abc' and CampaignLifecycleStatus eq '2'&amp;amp;$orderby=CampaignPriority desc&amp;amp;$format=json&amp;amp;$expand=CampaignAssignedTargetGroups&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Sriprasad Shivaram Bhat&lt;/P&gt;</description>
    <pubDate>Tue, 27 Nov 2018 07:42:57 GMT</pubDate>
    <dc:creator>Sriprasadsbhat</dc:creator>
    <dc:date>2018-11-27T07:42:57Z</dc:date>
    <item>
      <title>HCI Odata API dynamic query</title>
      <link>https://community.sap.com/t5/technology-q-a/hci-odata-api-dynamic-query/qaq-p/686535</link>
      <description>&lt;P&gt;Hi experts&lt;/P&gt;
  &lt;P&gt;The requirement is to pass the top paramter of the Odata API query dynamically.&lt;/P&gt;
  &lt;P&gt;Based on the input paylod value, this top parameter should be modified and passed to the API.&lt;/P&gt;
  &lt;P&gt;For ex : Below is the query where we need to pick the top 10 Campaign objects. &lt;/P&gt;
  &lt;P&gt;&lt;A href="https://xxxxxx.s4hana.ondemand.com/sap/opu/odata/sap/API_MKT_CAMPAIGN_SRV/Campaigns?$" target="test_blank"&gt;https://xxxxxx.s4hana.ondemand.com/sap/opu/odata/sap/API_MKT_CAMPAIGN_SRV/Campaigns?$&lt;/A&gt;&lt;STRONG&gt;&lt;EM&gt;top=10&lt;/EM&gt;&lt;/STRONG&gt;&amp;amp;$filter=CampaignCategory eq 'abc' and CampaignLifecycleStatus eq '2'&amp;amp;$orderby=CampaignPriority desc&amp;amp;$format=json&amp;amp;$expand=CampaignAssignedTargetGroups &lt;/P&gt;
  &lt;P&gt;This value 10 should change based on the input payload value ( we could also maintain a value mapping for the same)&lt;/P&gt;
  &lt;P&gt;Kindly provide your suggestions.&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;
  &lt;P&gt;Sudarvizhi P&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 10:50:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hci-odata-api-dynamic-query/qaq-p/686535</guid>
      <dc:creator>former_member597363</dc:creator>
      <dc:date>2018-11-22T10:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: HCI Odata API dynamic query</title>
      <link>https://community.sap.com/t5/technology-q-a/hci-odata-api-dynamic-query/qaa-p/686536#M183386</link>
      <description>&lt;P&gt;Hello Sudarvizhi,&lt;/P&gt;&lt;P&gt;Add content modifier&lt;STRONG&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/STRONG&gt;just before your request reply and set the header [ For Ex &lt;STRONG&gt;&lt;EM&gt;topval ] &lt;/EM&gt;&lt;/STRONG&gt;with whatever value you need and call the same in your channel like below&lt;/P&gt;&lt;P&gt;&lt;A href="https://xxxxxx.s4hana.ondemand.com/sap/opu/odata/sap/API_MKT_CAMPAIGN_SRV/Campaigns"&gt;https://xxxxxx.s4hana.ondemand.com/sap/opu/odata/sap/API_MKT_CAMPAIGN_SRV/Campaigns&lt;/A&gt;?$&lt;STRONG&gt;&lt;EM&gt;top=${header.topval}&lt;/EM&gt;&lt;/STRONG&gt;&amp;amp;$filter=CampaignCategory eq 'abc' and CampaignLifecycleStatus eq '2'&amp;amp;$orderby=CampaignPriority desc&amp;amp;$format=json&amp;amp;$expand=CampaignAssignedTargetGroups&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Sriprasad Shivaram Bhat&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 07:42:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hci-odata-api-dynamic-query/qaa-p/686536#M183386</guid>
      <dc:creator>Sriprasadsbhat</dc:creator>
      <dc:date>2018-11-27T07:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: HCI Odata API dynamic query</title>
      <link>https://community.sap.com/t5/technology-q-a/hci-odata-api-dynamic-query/qaa-p/686537#M183387</link>
      <description>&lt;P&gt;Thanks &lt;A href="https://answers.sap.com/users/191101/sriprasadshivaramabhat.html"&gt;Sriprasad Shivaram Bhat&lt;/A&gt;. Let me try this&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 09:46:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hci-odata-api-dynamic-query/qaa-p/686537#M183387</guid>
      <dc:creator>former_member597363</dc:creator>
      <dc:date>2018-12-11T09:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: HCI Odata API dynamic query</title>
      <link>https://community.sap.com/t5/technology-q-a/hci-odata-api-dynamic-query/qaa-p/686538#M183388</link>
      <description>&lt;P&gt;Hello Sriprasad&lt;/P&gt;&lt;P&gt;Do you know the reason why postman does not return the $expand content, only the root content?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 09:33:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hci-odata-api-dynamic-query/qaa-p/686538#M183388</guid>
      <dc:creator>czzzh</dc:creator>
      <dc:date>2024-01-10T09:33:48Z</dc:date>
    </item>
  </channel>
</rss>

