Take the 2-minute tour ×
Tridion Stack Exchange is a question and answer site for Tridion developers and administrators. It's 100% free, no registration required.

Probably I am missing something obvious, but I can't see how to find out the owning repository (ie the publication where a component is created) when I have opened a component with the Core Service... ComponentData.LocationInfo only has ContextRepository, which I guess is the publication which I opened the component in.

share|improve this question
add comment

1 Answer

up vote 8 down vote accepted

Either ComponentData.BluePrintInfo.OwningRepository or ComponentData.BluePrintInfo.PrimaryBluePrintParentItem is what you are looking for, depending on whether you need the parent of the item or the item in the top of the BluePrint chain where it was created in.

share|improve this answer
1  
Thanks Bart - I also see PrimaryBluePrintParentItem - I guess this is the real parent, and OwningRepository can be the place where the item has been localized between its parent and context publications... right? –  Will Price Feb 13 at 13:16
    
@WillPrice Yup that is my understanding too, so you might indeed need ComponentData.BluePrintInfo.PrimaryBluePrintParentItem –  Bart Koopman Feb 13 at 13:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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