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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Error using Resources["EntityServices"].CloneThing(params)

DuanGauche
11-Garnet

Error using Resources["EntityServices"].CloneThing(params)

This seems to be a bug which we have recreated in 9.1.1

5 REPLIES 5
Jimwang
14-Alexandrite
(To:DuanGauche)

@DuanGauche , I test it with the below code in 9.2.1, it works fine. What is the exact code and error in your site?

//==========

let params = {
name: "Test_Cloned_Target_Thing" /* STRING */,
description: "This is cloned Thing" /* STRING */,
sourceThingName: "testcloneSourceThing" /* THINGNAME */,
tags: undefined /* TAGS */
};

// no return
Resources["EntityServices"].CloneThing(params);

 

//==========

Supposedly 9.2.1 fixes a lot, but we will need to see that.

 

This article claims: "CloneThing Service from Resources EntityServices should be used for creating exact copy of the Thing including the data" - https://www.ptc.com/en/support/article/CS272038

 

@Jimwang  could you please verify that the persisted property data is also copied?

 

Thanks,

Duan

Jimwang
14-Alexandrite
(To:DuanGauche)

@DuanGauche , I tested it that the persisted property data is NOT copied . I add comments to the article CS272038 for waiting for their verification.

@Jimwang have you had verification on this yet?

Jimwang
14-Alexandrite
(To:DuanGauche)

The article 272038 has been merged to article CS326332. Please check https://www.ptc.com/en/support/article/CS326332

 

Top Tags