5

I am reading tridion Page of type PageData via core service. The page is attached to a bundle but the bundle is not in a workflow. Is it possible to get the attached bundle information from the PageData Object? I have gone through the PageData class in Tridion.ContentManager.CoreService.Client.PageData and it is having following properties

public class PageData : VersionedItemData
    {
        public LinkToApprovalStatusData ApprovalStatus { get; set; }

        public ComponentPresentationData[] ComponentPresentations { get; set; }

        public string FileName { get; set; }

        public bool? IsPageTemplateInherited { get; set; }

        public LinkToPageTemplateData PageTemplate { get; set; }

        public RegionDictionary Regions { get; set; }

        public LinkToSchemaData RegionSchema { get; set; }

        public WorkflowInfo WorkflowInfo { get; set; }
     }

WorkflowInfo in Null as Bundle in not in Workflow and other properties doesn't contains any information about the bundle.

Can someone help me here?

1 Answer 1

4

You can use ContainingBundlesFilterData and use following code to get bundles to which particular item is part of:

ContainingBundlesFilterData filter = new ContainingBundlesFilterData();

var bundles = _CoreServiceClient.GetList(<ItemId>, filter);
4
  • Is it possible to club ContainingBundlesFilterData with OrganizationalItemItemsFilterData tridion.stackexchange.com/questions/12872/… ? Sep 18, 2015 at 19:53
  • I am not aware of any such direct API using which you can combine these two filters.
    – Hiren Kaku
    Sep 18, 2015 at 20:00
  • channel = your core service client, right? Sep 18, 2015 at 20:21
  • Yes, updated the answer to reflect it.
    – Hiren Kaku
    Sep 18, 2015 at 20:38

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.