Skip to main content
March 18, 2022
Question

Create a document folder and sub folder from process model

  • March 18, 2022
  • 12 replies
  • 0 views

Hi All,

I know we can create folder , through process model , But can we create sub - folder also , if so can anyone let me know how to do it .

For eg : For Request id 1 i have uploaded 2 doc , suppose assume if doc 1 belongs to category 1 and doc 2 belongs to sub category of 1 , the doc should be saved in their respective folder, it should also check if the folder/doc exists or no .

Can anyone please help me on this !

    12 replies

    stefanhelzle0001
    Brainy
    March 18, 2022

    When you create a new folder, you can define the parent. Just create the first folder and store the created folder as a PV. Then make this the parent of the second folder.

    For checking existence: The folder() function allows you to get any folders and/or documents in a given folder. Should be easy to check then.

    andrewh0007
    March 18, 2022

    This is definitely possible. You can string together "Create Folder" smart services and you can either pass in the parent folder or the parent knowledge centre and save the output folder object into a process variable.

    Don't forget to set/modify/inherit security if that's a requirement and you can also move the folders created into the desired application using the "Add Objects to Application" smart service.

    March 20, 2022

    Hi @andrewh0007k ,  Thanks , the above solution is working . I am stuck with another scenario can you please help me with it :  I have  5 parent folders and 2 - 3 child folders for each parent folder . Can you give me an idea on how to compare and check whether the folder has been created or no. 

    andrewh0007
    March 20, 2022

    As Stefan said above, you can use the folder() function.

    March 18, 2022

    Thank you stefanh0002  and [mention:e70b14ab0a7346dab1a7041b57706860:e9ed411860ed4f2ba0265705b8793d05] for your replies.