1 Reply Latest reply on Sep 8, 2015 2:42 PM by paic RSS
    mattl Explorer

    Programmatically add DataTags

    Hey Guys

    I’m trying to programmatically create and add DataTags to things so that I can filter and post to a blog widget by the selected tag. I see that the AddTags() function only assigns/creates ModelTags, and you can’t post something to a blog that is tagged with a ModelTag. Is there a DataTags equivalent to the AddTags() function?


    Thanks,

    Matt

      • Re: Programmatically add DataTags
        paic Collaborator

        For Blog entries, when you do AddBlogEntry (guessing the name here) you can define tags in the params block.

        Also if you look in the Training material (Thingworx Fundamentals) and look in the DataTags section you should see an example there when adding entries to a stream.