Skip to main content
Apr 20, 2022 10:54 AM UTC
Question

how the change the project name of entities like thingshape,mashups,style definition by service.

i have more than 500 different types of entities that are attached to a wrong project. I want to change the project name of entities but manually changing the name will take lots of time and work and i want to change the project name of all entities in one go by a service or some other methods. can you guys provide solution for the same.

 

Note i have done this for all things but API is not available for mashups, style def. etc. is there any way to perform this task ?

2 replies

Apr 21, 2022 6:26 AM UTC

Mashups do have the SetProjectName service available in 9.3.1 at least.

Each entity should have this service. Did you try to use it and you had an error?

Mashups["Left Panel with Menu"].SetProjectName({
projectName: undefined /* PROJECTNAME */
});

Apr 22, 2022 11:39 AM UTC

I've done a lot of editing like this by exporting the project (Source Control Entities, which writes the files under SystemRepository) and editing the XML files.  It's pretty easy to open all files in a good text editor and find/replace things like the project name in all files at once, then save and import back into ThingWorx.  I routinely export entire projects and use Agent Ransack (Windows) to quickly find usage of services, session parameters, etc.