<?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: How can I retrieve active bound properties on a Thing on ver9.1 in ThingWorx Developers</title>
    <link>https://community.ptc.com/t5/ThingWorx-Developers/How-can-I-retrieve-active-bound-properties-on-a-Thing-on-ver9-1/m-p/921905#M65017</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/767196"&gt;@TMnemo_11&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to get the remote bounded property values with quality,time &amp;amp; value means, below given code will helps you to acheive it. Kindly try with it, If any queries please let me know.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var params = {
	infoTableName: "InfoTable",
	dataShapeName: "PropertyDefinition"
};

// CreateInfoTableFromDataShape(infoTableName:STRING("InfoTable"), dataShapeName:STRING):INFOTABLE(PropertyDefinition)
var FinalData = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape(params);

// result: INFOTABLE dataShape: "PropertyDefinition"
var PropertyData = Things[IP_AssetThingName].GetPropertyDefinitions({
	category: undefined /* STRING */ ,
	type: undefined /* BASETYPENAME */ ,
	dataShape: undefined /* DATASHAPENAME */
});
// result: INFOTABLE dataShape: ""
var PropertyLiveData = Things[IP_AssetThingName].GetPropertyValuesAsMultiRowTable();


var a = 0;
for (; PropertyData.length &amp;gt; a; a++) {
	var PropertyDataRow = PropertyData.rows[a];
	try {
		// result: INFOTABLE dataShape: "RemotePropertyBinding"
		var BindingData = Things[IP_AssetThingName].GetRemotePropertyBinding({
			propertyName: PropertyDataRow.name /* STRING */
		});
		PropertyDataRow.sourceName = BindingData.sourceName;
		FinalData.AddRow(PropertyDataRow);

	} catch (e) {}

}

var params = {
	columns2: "name,description,baseType,isLogged,isPersistent,isReadOnly,sourceName" /* STRING */ , //
	columns1: "name,quality,time,value" /* STRING */ ,
	joinType: "INNER" /* STRING */ ,
	t1: PropertyLiveData /* INFOTABLE */ ,
	t2: FinalData /* INFOTABLE */ ,
	joinColumns1: "name" /* STRING */ ,
	joinColumns2: "name" /* STRING */
};

// result: INFOTABLE
var JoinData = Resources["InfoTableFunctions"].Intersect(params);
result = JoinData;&lt;/LI-CODE&gt;&lt;P&gt;Expected Out:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Arun_C_0-1704465008139.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/95730i273C79A281B612F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Arun_C_0-1704465008139.png" alt="Arun_C_0-1704465008139.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Arun C&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jan 2024 14:30:18 GMT</pubDate>
    <dc:creator>Arun_C</dc:creator>
    <dc:date>2024-01-05T14:30:18Z</dc:date>
    <item>
      <title>How can I retrieve active bound properties on a Thing on ver9.1</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/How-can-I-retrieve-active-bound-properties-on-a-Thing-on-ver9-1/m-p/921837#M65012</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TM_10841814_0-1704447349778.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/95708iD8765D17ED8E7E1F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TM_10841814_0-1704447349778.png" alt="TM_10841814_0-1704447349778.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is it possible to get a list of all bound properties and their source and VTQ on a Thing by executing a service? Ideally I would like to monitor bad endpoints and create some notification to help track and fix any problems.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TM_10841814_0-1704447604910.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/95709i40D06CD37B13A4AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TM_10841814_0-1704447604910.png" alt="TM_10841814_0-1704447604910.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have tried the getBound Items function with no success, even though I have quite a number of properties bound on my thing.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 09:44:51 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/How-can-I-retrieve-active-bound-properties-on-a-Thing-on-ver9-1/m-p/921837#M65012</guid>
      <dc:creator>TMnemo_11</dc:creator>
      <dc:date>2024-01-05T09:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I retrieve active bound properties on a Thing on ver9.1</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/How-can-I-retrieve-active-bound-properties-on-a-Thing-on-ver9-1/m-p/921905#M65017</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/767196"&gt;@TMnemo_11&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to get the remote bounded property values with quality,time &amp;amp; value means, below given code will helps you to acheive it. Kindly try with it, If any queries please let me know.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var params = {
	infoTableName: "InfoTable",
	dataShapeName: "PropertyDefinition"
};

// CreateInfoTableFromDataShape(infoTableName:STRING("InfoTable"), dataShapeName:STRING):INFOTABLE(PropertyDefinition)
var FinalData = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape(params);

// result: INFOTABLE dataShape: "PropertyDefinition"
var PropertyData = Things[IP_AssetThingName].GetPropertyDefinitions({
	category: undefined /* STRING */ ,
	type: undefined /* BASETYPENAME */ ,
	dataShape: undefined /* DATASHAPENAME */
});
// result: INFOTABLE dataShape: ""
var PropertyLiveData = Things[IP_AssetThingName].GetPropertyValuesAsMultiRowTable();


var a = 0;
for (; PropertyData.length &amp;gt; a; a++) {
	var PropertyDataRow = PropertyData.rows[a];
	try {
		// result: INFOTABLE dataShape: "RemotePropertyBinding"
		var BindingData = Things[IP_AssetThingName].GetRemotePropertyBinding({
			propertyName: PropertyDataRow.name /* STRING */
		});
		PropertyDataRow.sourceName = BindingData.sourceName;
		FinalData.AddRow(PropertyDataRow);

	} catch (e) {}

}

var params = {
	columns2: "name,description,baseType,isLogged,isPersistent,isReadOnly,sourceName" /* STRING */ , //
	columns1: "name,quality,time,value" /* STRING */ ,
	joinType: "INNER" /* STRING */ ,
	t1: PropertyLiveData /* INFOTABLE */ ,
	t2: FinalData /* INFOTABLE */ ,
	joinColumns1: "name" /* STRING */ ,
	joinColumns2: "name" /* STRING */
};

// result: INFOTABLE
var JoinData = Resources["InfoTableFunctions"].Intersect(params);
result = JoinData;&lt;/LI-CODE&gt;&lt;P&gt;Expected Out:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Arun_C_0-1704465008139.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/95730i273C79A281B612F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Arun_C_0-1704465008139.png" alt="Arun_C_0-1704465008139.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Arun C&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 14:30:18 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/How-can-I-retrieve-active-bound-properties-on-a-Thing-on-ver9-1/m-p/921905#M65017</guid>
      <dc:creator>Arun_C</dc:creator>
      <dc:date>2024-01-05T14:30:18Z</dc:date>
    </item>
  </channel>
</rss>

