Skip to main content
16-Pearl
August 1, 2023
Solved

How to programmatically duplicate an entity

  • August 1, 2023
  • 1 reply
  • 1204 views

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.

 

Best answer by Willie

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

1 reply

19-Tanzanite
August 2, 2023

Hi @Willie 

 

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

 

/VR

Willie16-PearlAuthorAnswer
16-Pearl
August 3, 2023

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

19-Tanzanite
August 3, 2023

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