<?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: Infotable Query via RestAPI in ThingWorx Developers</title>
    <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Infotable-Query-via-RestAPI/m-p/970108#M67686</link>
    <description>&lt;P&gt;Try to pass it as a parameter first and see if it works (use a simpler service with a number first to see if this approach works).&lt;/P&gt;
&lt;P&gt;For as long as I remember, the service input parameters have been passed in the body, but tbh I never tried on my end to pass them as URL params - hence the recommendation.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Sep 2024 15:24:58 GMT</pubDate>
    <dc:creator>VladimirRosu</dc:creator>
    <dc:date>2024-09-06T15:24:58Z</dc:date>
    <item>
      <title>Infotable Query via RestAPI</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Infotable-Query-via-RestAPI/m-p/969763#M67671</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am currently looking for a way to dynamically filter an info table via a service using a query via RestAPI.&lt;/P&gt;
&lt;P&gt;Ideally, the full functionality of the query function should be retained. Has anyone had any experience with this?&lt;/P&gt;
&lt;P&gt;In SAP IoT, the whole thing is more or less solved as a complete parameter in the URL. But in Thingworx, this doesn't seem to be possible, or am I missing something?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 17:35:20 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Infotable-Query-via-RestAPI/m-p/969763#M67671</guid>
      <dc:creator>Pi_Baettgen</dc:creator>
      <dc:date>2024-09-05T17:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Infotable Quey via RestAPI</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Infotable-Query-via-RestAPI/m-p/969810#M67678</link>
      <description>&lt;P&gt;Can you give an example of your code?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 13:49:24 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Infotable-Query-via-RestAPI/m-p/969810#M67678</guid>
      <dc:creator>Rocko</dc:creator>
      <dc:date>2024-09-05T13:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Infotable Quey via RestAPI</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Infotable-Query-via-RestAPI/m-p/969813#M67679</link>
      <description>&lt;P&gt;Unfortunately, I am not allowed to share internal code and would have to create a general snippet first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I don't really understand why you need one:&lt;/P&gt;&lt;P&gt;The question is very general how I can best use an info table query/filter via RestCall by passing it in the URL or as a parameter in the header&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 13:54:15 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Infotable-Query-via-RestAPI/m-p/969813#M67679</guid>
      <dc:creator>Pi_Baettgen</dc:creator>
      <dc:date>2024-09-05T13:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Infotable Quey via RestAPI</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Infotable-Query-via-RestAPI/m-p/969859#M67682</link>
      <description>&lt;HTML&gt;
 &lt;HEAD&gt;
 &lt;/HEAD&gt;&lt;BODY&gt;
  It's just unclear to me what you mean by "Infotable query filter"
  &lt;BR /&gt;
  &lt;BR /&gt;
 
&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2024 16:32:59 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Infotable-Query-via-RestAPI/m-p/969859#M67682</guid>
      <dc:creator>Rocko</dc:creator>
      <dc:date>2024-09-05T16:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Infotable Query via RestAPI</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Infotable-Query-via-RestAPI/m-p/970048#M67683</link>
      <description>&lt;P&gt;While I'm not sure I understand 100% the situation, the Query snippet allows you to query an Infotable:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;let params = {
	t: undefined /* INFOTABLE */,
	query: undefined /* QUERY */
};

// result: INFOTABLE
let result = Resources["InfoTableFunctions"].Query(params);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;This is user-callable via POST REST, just like any other ThingWorx API (except the Websocket endpoints).&lt;/P&gt;
&lt;P&gt;The parameters should be sent in the body of the request - I don't remember if you can pass them as URL parameters.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 11:25:32 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Infotable-Query-via-RestAPI/m-p/970048#M67683</guid>
      <dc:creator>VladimirRosu</dc:creator>
      <dc:date>2024-09-06T11:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Infotable Query via RestAPI</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Infotable-Query-via-RestAPI/m-p/970107#M67685</link>
      <description>&lt;P&gt;Hey Vladimir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yeah thats actualy what i was trying to do via URL oder as a Parameter. in Postman. So its only possible in the body?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 15:22:48 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Infotable-Query-via-RestAPI/m-p/970107#M67685</guid>
      <dc:creator>Pi_Baettgen</dc:creator>
      <dc:date>2024-09-06T15:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Infotable Query via RestAPI</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Infotable-Query-via-RestAPI/m-p/970108#M67686</link>
      <description>&lt;P&gt;Try to pass it as a parameter first and see if it works (use a simpler service with a number first to see if this approach works).&lt;/P&gt;
&lt;P&gt;For as long as I remember, the service input parameters have been passed in the body, but tbh I never tried on my end to pass them as URL params - hence the recommendation.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 15:24:58 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Infotable-Query-via-RestAPI/m-p/970108#M67686</guid>
      <dc:creator>VladimirRosu</dc:creator>
      <dc:date>2024-09-06T15:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Infotable Query via RestAPI</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Infotable-Query-via-RestAPI/m-p/970829#M67734</link>
      <description>&lt;P&gt;Hello Vladimir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Individual parameters are not a problem but I think it seems difficult or even impossible to send the filter information for the query in the header or via the URL. We are now solving this with a direct SQL command to the underlying database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 10:53:19 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Infotable-Query-via-RestAPI/m-p/970829#M67734</guid>
      <dc:creator>Pi_Baettgen</dc:creator>
      <dc:date>2024-09-11T10:53:19Z</dc:date>
    </item>
  </channel>
</rss>

