Hi,
I do have a few Entities tagged with the tag Applications: Sprint1; how can I get all the Entities under that Tag in a Service output to have an Info table?
Thanks,
Solved! Go to Solution.
Hi,
there is a Snippet to get an entity list, based on different search criteria. You can use a tag or a nameMask (allows a wildcard search).
let params = {
maxItems: undefined /* NUMBER {"defaultValue":500} */,
nameMask: undefined,//"Test*" /* STRING */,
type: "Thing" /* STRING */, //Mashup,ThingTemplate,ThingShape, ...
tags: "PTC:Navigate" /* TAGS */
};
// result: INFOTABLE dataShape: RootEntityList
let result = Resources["EntityServices"].GetEntityList(params);
The result is an Infotable with the DataShape: "RootEntityList". If you want to get mashup, Templates etc in one Infotable, than you can use the snippet for different Types an simply join them with the Union Snippet.
let params = {
t1: table1 /* INFOTABLE */,
t2: table2 /* INFOTABLE */
};
let result = Resources["InfoTableFunctions"].Union(params);
Best regards
Markus
Hi,
there is a Snippet to get an entity list, based on different search criteria. You can use a tag or a nameMask (allows a wildcard search).
let params = {
maxItems: undefined /* NUMBER {"defaultValue":500} */,
nameMask: undefined,//"Test*" /* STRING */,
type: "Thing" /* STRING */, //Mashup,ThingTemplate,ThingShape, ...
tags: "PTC:Navigate" /* TAGS */
};
// result: INFOTABLE dataShape: RootEntityList
let result = Resources["EntityServices"].GetEntityList(params);
The result is an Infotable with the DataShape: "RootEntityList". If you want to get mashup, Templates etc in one Infotable, than you can use the snippet for different Types an simply join them with the Union Snippet.
let params = {
t1: table1 /* INFOTABLE */,
t2: table2 /* INFOTABLE */
};
let result = Resources["InfoTableFunctions"].Union(params);
Best regards
Markus