Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  Inherit a property from folder to document

    Posted Fri October 01, 2021 11:55 AM

    Hello friends I hope you are doing well

    please I have a question it's possible to inherit the folderpath to all document property that exists in the folder in question.

    In principle I want to have the id of the folder or the pathFolder from a document in this folder

    Thank you



    ------------------------------
    El Mehdi ES-SAFI
    ------------------------------


  • 2.  RE: Inherit a property from folder to document

    Posted Mon October 04, 2021 03:47 AM
    Hi El Mehdi,

    could you please explain what you actually want to achieve?
    Of course you can use a custom event handler to propagate the folder ID or the folder path to a custom document property whenever you add a document to this folder. But the question is, why would you need to do that? Or in other words, how do you want to use this information later on?

    Best regards,
    Michael


    ------------------------------
    Michael Kirchner
    Leading Technical Specialist - Digital Business Automation
    IBM Technology
    Germany
    ------------------------------



  • 3.  RE: Inherit a property from folder to document

    Posted Mon October 04, 2021 04:15 AM
    Hello Mr Kirchner,

    Thank you for your help,

    I want to know the path of the folder which contains an X document I' explain more :

    I am looking for documents by a property X and for each document I want to know the folder which contains the document. I thought about creating a new property and each time the document is created I initale it with the path of the folder , Is this the right solution ?

    Best regards,
    El Mehdi


    ------------------------------
    El Mehdi ES-SAFI
    ------------------------------



  • 4.  RE: Inherit a property from folder to document

    Posted Mon October 04, 2021 04:54 AM
    Hi El Mehdi,

    each document already has a system property which contains a reference to all folders it is filed into.
    This system property (symbolic name FoldersFiledIn) is a list of IDs where each entry is the ID of a folder into which the document is filed. It needs to be of type list as in general a document can be filed into 0....N different folders.
    So in case you want to know into which folder a document is filed to, you can simply query the FoldersFiledIn property for the document and read the folder ID(s).
    Does this help?

    Best regards,
    Michael

    ------------------------------
    Michael Kirchner
    Leading Technical Specialist - Digital Business Automation
    IBM Technology
    Germany
    ------------------------------



  • 5.  RE: Inherit a property from folder to document

    Posted Mon October 04, 2021 07:58 AM

    Hello
    Please take into account, that a document might be filed in many folders.

    If you want to store on the document a property from the folder it is filed in, then you might want to create a subscription, which is e.g. firing when a document is filed in a folder, and setting / unsetting that property with the document being filed and unfiled from folders.

    Best Regards,

    Dr. Matthias Jung
    Enterprise Content Services Software Engineer
    Accelerated Value Specialist - Digital Business Automation - SWAT



    ------------------------------
    Matthias Jung
    ------------------------------



  • 6.  RE: Inherit a property from folder to document

    Posted Mon October 04, 2021 10:29 AM
    Yes...use the FoldersFiledIn property on the document -- note that a document can be filed in more that folder though. See here for more information: https://www.ibm.com/docs/en/filenet-p8-platform/5.5.x?topic=properties-working

    ------------------------------
    RUTH Hildebrand-Lund
    ------------------------------



  • 7.  RE: Inherit a property from folder to document

    Posted Tue October 05, 2021 04:09 AM
    Hello ,

    Thank you for your help,

    The solution I did is that I add a property where I copy the parameter from the folder to the document in my case the document can be stored in a single folder

    ------------------------------
    El Mehdi ES-SAFI
    ------------------------------