<?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: Information about 'GetEntityList' service in ThingWorx Developers</title>
    <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Information-about-GetEntityList-service/m-p/619783#M37801</link>
    <description>&lt;P&gt;Thanks Guys for the quick response&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Aditya&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2019 11:01:46 GMT</pubDate>
    <dc:creator>amittal-3</dc:creator>
    <dc:date>2019-07-25T11:01:46Z</dc:date>
    <item>
      <title>Information about 'GetEntityList' service</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Information-about-GetEntityList-service/m-p/619733#M37783</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I m trying to use the 'GetEntityList' service in Thingworx which can be found in 'EntityServices' resource. This service has couple of parameters as below:&lt;/P&gt;
&lt;PRE&gt;// result: INFOTABLE dataShape: "RootEntityList"
var result =  Resources["EntityServices"].GetEntityList({
	maxItems: undefined /* NUMBER */,
	nameMask: "PART" /* STRING */,
	type: "Thing" /* STRING */,
	tags: "CMU_MT_IOTServer2.0:AUTO" /* TAGS */
});&lt;/PRE&gt;
&lt;P&gt;I am not able to understand about 'nameMask'. How is this parameter used? Does it take Reg-Ex as input or does it work on 'contains' mechanism? Kindly share some information/samples/examples on how to use this parameter.&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;-Aditya Mittal&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 08:33:41 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Information-about-GetEntityList-service/m-p/619733#M37783</guid>
      <dc:creator>amittal-3</dc:creator>
      <dc:date>2019-07-25T08:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Information about 'GetEntityList' service</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Information-about-GetEntityList-service/m-p/619750#M37788</link>
      <description>&lt;P&gt;Hi yes it is like reg-ex, so you could use filters such as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"*PART*"&amp;nbsp; &amp;nbsp;which would return anything that contains 'PART' in the name&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;"PART*"&amp;nbsp; &amp;nbsp;which would return anything that begins with 'PART' in the name&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;"*PART"&amp;nbsp; &amp;nbsp;which would return anything that ends with 'PART' in the name&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so to get all Thing entities with 'PART' somewhere in the name you can use&lt;/P&gt;
&lt;P&gt;var params = {&lt;BR /&gt;maxItems: undefined /* NUMBER */,&lt;BR /&gt;nameMask: "&lt;STRONG&gt;*PART*&lt;/STRONG&gt;" /* STRING */,&lt;BR /&gt;type: "Thing" /* STRING */,&lt;BR /&gt;tags: "myTag" /* TAGS&amp;nbsp; if required*/&lt;BR /&gt;};&lt;/P&gt;
&lt;P&gt;// result: INFOTABLE dataShape: RootEntityList&lt;BR /&gt;var result = Resources["EntityServices"].GetEntityList(params);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 09:29:05 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Information-about-GetEntityList-service/m-p/619750#M37788</guid>
      <dc:creator>khayes1</dc:creator>
      <dc:date>2019-07-25T09:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Information about 'GetEntityList' service</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Information-about-GetEntityList-service/m-p/619759#M37792</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just to epand on&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/282443"&gt;@khayes1&lt;/a&gt;&amp;nbsp;answer:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;You can also use "?", which stands for a single character (analog of "." in regex)&lt;/LI&gt;
&lt;LI&gt;It looks like you can also use regex character classes and quantifiers, e.g. "Device-[0-9]{4}" to find "Device-0001", etc.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;/ Constantine&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 09:46:59 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Information-about-GetEntityList-service/m-p/619759#M37792</guid>
      <dc:creator>Constantine</dc:creator>
      <dc:date>2019-07-25T09:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Information about 'GetEntityList' service</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Information-about-GetEntityList-service/m-p/619783#M37801</link>
      <description>&lt;P&gt;Thanks Guys for the quick response&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 11:01:46 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Information-about-GetEntityList-service/m-p/619783#M37801</guid>
      <dc:creator>amittal-3</dc:creator>
      <dc:date>2019-07-25T11:01:46Z</dc:date>
    </item>
  </channel>
</rss>

