For a solution I working on, we have for each business object (data class, scriptfunction, screen...) a specific prefic in its name.
e.g. for a country specific prefix "EURO" or "ASIA" that results in names like ASIAAccount or ASIACreateCustomer, EUROCreateCustomer and so on.
Now unfortunately I need to rename all the around 1500 businessobjects to another prefix. I was thinking of duplicate/rename it and delete the old one. But I can not find out how to duplicate it from a script. Also the function CONTEXT().getBusinessObjectRepository().changeId($bo, $newId); does not work. Is there a way to duplicate.
For a solution I working on, we have for each business object (data class, scriptfunction, screen...) a specific prefic in its name.
e.g. for a country specific prefix "EURO" or "ASIA" that results in names like ASIAAccount or ASIACreateCustomer, EUROCreateCustomer and so on.
Now unfortunately I need to rename all the around 1500 businessobjects to another prefix. I was thinking of duplicate/rename it and delete the old one. But I can not find out how to duplicate it from a script. Also the function CONTEXT().getBusinessObjectRepository().changeId($bo, $newId); does not work. Is there a way to duplicate.
Regards,
Lorenz