5 Replies Latest reply on Aug 10, 2016 9:20 AM by jmay RSS
    jmay Apprentice

    Get Property Definitions by Template

    I am trying to figure out how to get property definitions for a template. I've tried creating my own service with "TemplateName" as an input using this snippet:


    var params = {
          category: undefined /* STRING */,
          type: undefined /* BASETYPENAME */,
          dataShape: undefined /* DATASHAPENAME */
    };

         // result: INFOTABLE dataShape: PropertyDefinition
         var result = ThingTemplates[TemplateName]GetPropertyDefinitions(params);

     

    But it is returning a blank infotable, I'm assuming because my parameters are all undefined?

     

    The only way I can seem to get a list of properties is by ThingName.