Creating a branch and inherit the XML file from the base version (DocumentObj25.Create method)

Hello,

When I use DocumentObj25.Create function from SDL LiveContent API in order to create a new branch "1.1.1" from the version "1", is it possible to seed the contents of the XML file from the version "1" into the new branch, without reading this XML file and passing it in the pbData argument?

The Architect UI allows to create a branch from the selected version, and, if no file was chosen, the XML file from the parent version will be used to create a language level on the branch. How this behavior can be accomplished with the API?

Thanks a lot in advance.

Parents
  • Hi, although the UI does support this, it is not supported by one API call. This can be achieved by the API using an additional call to retrieve the XML instance first. For this particular function it could be beneficial to do it in one call so to copy over the content would be done server side reducing the amount of bytes send along the wire but in general the API functions are atomic to have maximum flexibility for different implementation needs.
Reply
  • Hi, although the UI does support this, it is not supported by one API call. This can be achieved by the API using an additional call to retrieve the XML instance first. For this particular function it could be beneficial to do it in one call so to copy over the content would be done server side reducing the amount of bytes send along the wire but in general the API functions are atomic to have maximum flexibility for different implementation needs.
Children