1

I'm looking for a solution to get the (BluePrint) parent of a Publication based on its TCM URI, could you help me ?

1 Answer 1

3

Just use the Core Service Read method, to read in the data of a Publication, and check its Parents property:

var pubData = (PublicationData)client.Read("tcm:0-6-1", new ReadOptions());
foreach (var parent in pubData.Parents)
{
    string parentUri = parent.IdRef;
}

Please note there can be multiple BluePrint parents for a Publication. You can find the Core Service API guide for 2011 on http://sdltridionworld.com under downloads/documentation/SDLTridion2011 (requires login)

1
  • That's all I needed, I'll read the guide, thanks
    – Giu Do
    Aug 9, 2013 at 12:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.