Skip to main content
1-Visitor
August 24, 2018
Solved

Assign multiple tags at the time of Entity creation

  • August 24, 2018
  • 1 reply
  • 1107 views

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

Best answer by CarlesColl

Separate them with ";" that's all.

1 reply

1-Visitor
August 24, 2018

Separate them with ";" that's all.