2 Replies Latest reply on Aug 9, 2016 11:53 AM by giri RSS
    michaele Explorer

    Create NewThing  with Tag service

    Hello I am using the following code to create a NewThing.  One of the parameter inputs is called 'tag' and I have set this to required, and it has a default value.

     

    var params = {

        tags: tag /* TAGS */,

      thingTemplateName: 'CustomerSiteTemplate' /* THINGTEMPLATENAME */,

      description: undefined /* STRING */,

      name: SiteName /* STRING */

    };

     

     

    Resources["EntityServices"].CreateThing(params);

     

    When I test the code I get no errors.  But when I go back to Composer...

     

    The Thing has been created, but it has no tags

     

    I would have expected it to have the defualt value I specified in the inputs.....  And yes 'tag' has a type of 'Tags'