Community Tip - You can change your system assigned username to something more personal in your community settings. X
Hi,
I want to give entity name as TreeThing_abc where _abc is the suffix. Whenever I want to give the name for any entity, _abc should come by default and then I'll add the prefix name based on the entity that I create. Is there any possibility to get default name for entity name.
thanks
sameera
Solved! Go to Solution.
You just need to use CreateThing snipped and add the desired sufix:
var sufix = "_mySufix";
Resources["EntityServices"].CreateThing({
name: "myCustomName"+sufix,
description: "",
thingTemplateName: "GenericThing",
tags: undefined
})
Not with the Composer, but you can create a custom service in order to create entities and in this service add the suffix by the rules you desire, it's how we do it.
You just need to use CreateThing snipped and add the desired sufix:
var sufix = "_mySufix";
Resources["EntityServices"].CreateThing({
name: "myCustomName"+sufix,
description: "",
thingTemplateName: "GenericThing",
tags: undefined
})
Hi CarlesColl,
I'm able to create a thing with the suffix. But I want to get the suffix whenever I click on the name to create a thing or ThingTemplate or any entity.
That's what I said on my first answer that can't be done through the Composer.
You can create a Mashup utilizing your custom services. Then you can assign this mashup as your home mashup in your HelperThing. And access it simply by clicking on HomeMashup in EntityInformation section.