Detach a live copy programatically
My translation tool creates new language copies as live copies since we send live copies for translation. I am looking for a way to detach live relationship through code. Any suggestions will help.
My translation tool creates new language copies as live copies since we send live copies for translation. I am looking for a way to detach live relationship through code. Any suggestions will help.
Hi @aemg12 ,
You can use the below method of LiveRelationshipManager to detach relationship as detach(Resource resource, boolean autoSave) is Deprecated.
endRelationship(Resource resource, boolean autoSave)
Ends the LiveRelationship of the given Resource.
The Resource has to be part of a LiveCopy As indicated by hasLiveRelationship method
A detached Resource is treated as any other Resource that is created in the LiveCopy tree.
NOTE: this means especially that any history of this relation is gone
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.