Skip to main content
16-Pearl
Aug 1, 2023 4:37 PM UTC
Solved

How to programmatically duplicate an entity

Is there a way to programmatically duplicate an entity?  It seems some entities don't have thing templates, so they cannot be created with a thing template.

 

WillieAnswer
16-Pearl
Aug 3, 2023 5:17 AM UTC

Hi @Velkumar 

 

I wanted to know how to duplicate a thing in case I'm not able to access the 'Scheduler' thingTemplate in TWX 8.5.3 mentioned in my other post.  

I found a few services for cloning entities under "EntityServices".

 

Thingworx - 2023-08-02 - EntityServices Clone Thing.png

3 replies

19-Tanzanite
Aug 2, 2023 5:20 AM UTC

Hi @Willie 

 

It is not possible to duplicate entities programmatically. Could you please explain your use case so we can find some workaround?

 

/VR

Translate
Willie16-PearlAuthorAnswer
16-Pearl
Aug 3, 2023 5:17 AM UTC

Hi @Velkumar 

 

I wanted to know how to duplicate a thing in case I'm not able to access the 'Scheduler' thingTemplate in TWX 8.5.3 mentioned in my other post.  

I found a few services for cloning entities under "EntityServices".

 

Thingworx - 2023-08-02 - EntityServices Clone Thing.png

Translate
19-Tanzanite
Aug 3, 2023 5:40 AM UTC

My bad I didn't check for keyword clone.  Great 🙂

Translate