cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Assign multiple tags at the time of Entity creation

amittal-3
13-Aquamarine

Assign multiple tags at the time of Entity creation

Hello,

I am creating an entity (say Thing) using service as - 

var params = {
	    name: "TEST_THING"/* STRING */,
	    description: "" /* STRING */,
	    thingTemplateName: "GenericThing" /* THINGTEMPLATENAME */,
	    tags: "MODELTAG:Tag1," /* TAGS */
    };
    // no return
    Resources["EntityServices"].CreateThing(params);

This is working fine. My query is how can I give multiple model tags at entity creation time? Suppose I want to give "Tag2" also, how can I do that?

I am aware of the services 'AddTags' and 'SetTags'. These services are called once entities are created. But I wanted to know if there is a way to assign multiple tags at creation time.

Thanks in advance

Aditya

1 ACCEPTED SOLUTION

Accepted Solutions

Separate them with ";" that's all.

View solution in original post

1 REPLY 1

Separate them with ";" that's all.

Top Tags