Commerce Server Staging API samples
Comments
Anonymous
March 15, 2007
The comment has been removedAnonymous
August 05, 2008
How do I rename a staging project? I wrote a command wrapper for the shell integration, which I wrapped in a web service for remote staging control. But now, I need to flag my projects so that I can control access, and they do not have consistent enough naming conventions. It appears that you need to change the project name in the registry and then update the project file name. Is there anything else? Does the api support project rename?Anonymous
August 11, 2008
When you rename the project it will just create a new one. So you can emulate the renaming by opening a new project then commit the changes then delete the original project. CReplicationServer replicationServer = new CReplicationServer(); replicationServer.Initialize(""); CReplicationProject replicationProject; replicationProject = (CReplicationProject)replicationServer.OpenProject("Test", CSS_PROJECT_CREATION.OPEN_EXISTING_PROJECT); replicationProject.set_Name("testMAX"); replicationProject.Commit(); replicationServer.DeleteProject("Test"); -Max