190
Views
4
Comments
Solved
Is there a way to move a static entity to a difference module (OS11)
Question

I have a static entity with autonumber on in Module A and need to move it to module B because of architecture violations.

Refactor tool is not suitable for OS11.

Is there a description how to do this process

Posts in he past reference the Refactor application. But that isn't compatible for OS11 (and also not for Static entities) hence my question for the manual approach.

Thanks!!

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
Solution

Hi Peter,

You should copy/paste the static entity, then set the "Is Autonumber" property of the Id to No, and fill in the right integer values (you can open the original static entity to see what the values are). Next, publish the module with the "new" static entity, and then fix all foreign keys to that static entity in all other entities (and publish, then refresh all consumers of those entities), and fix all references to the new static entity. (And somewhere in between you can remove the old static entity of course.)

2022-08-03 04-32-50
Ravi Punjwani
Solution

Hi Peter,

You can move it to another module manually, and make sure to keep the autonumber OFF this time.

If you only care about the data in Production, then it comes very easy to achieve. Just match the new IDs with the ones you have in Production database.

Otherwise, it might be a bit of data migration overheads initially, but it will be a long term solution to keep them without autonumber.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
Solution

Hi Peter,

You should copy/paste the static entity, then set the "Is Autonumber" property of the Id to No, and fill in the right integer values (you can open the original static entity to see what the values are). Next, publish the module with the "new" static entity, and then fix all foreign keys to that static entity in all other entities (and publish, then refresh all consumers of those entities), and fix all references to the new static entity. (And somewhere in between you can remove the old static entity of course.)

2025-04-30 07-30-15
Sanjay Bankar

Hi @Peter Van Den Ochtend 

You Can right click on Static Entity Name and Copy it and paste it wherever you want and after pasting set IsAutonumber property of ID to No.


Regards

2018-06-04 08-06-09
Peter Van Den Ochtend

Thanks for the responses. I postponed it because of the different ID’s on each environment and the delivery pressure at the moment. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.