This project is read-only.

Get Parent Folder Action

Scenario: test.aspx resides in Folder1. We want to get the Title of Folder1 and set the Title of test.docx to the Title of the Folder. In particular this action is useful when you don’t have Document Sets (SharePoint Server 2010). With this action you could easily build workflows that inherit any meta data from folders. In practice many people use this to add approvers to a folder and use the folder approvers for the documents within.

image

1. Add “Get Parent Folder” action to a SharePoint Designer 2010 Workflow

 image

2. Configure the Action

image

List Item: Choose the List Item from which you want to get the parent folder.

Folder Item ID: The List Item ID of the Folder

Demo:

image

We get the folder item id from the parent folder of the current item. After this we use the “Set Field in Current Item” to set the title of the current item to the title of the folder.

You can repeat this for any meta data you want to inherit from the folder.

3. Publish and run the Workflow

image

Last edited Jan 6, 2011 at 11:48 AM by cglessner, version 3

Comments

jiecerbo Jul 30, 2014 at 7:37 AM 
Hi, I have the same issue as MSCode. Do you have any solution? Thanks!

MSCode Jun 5, 2014 at 10:26 AM 
Good solution. Thanks for that.
But I run into the error when tried to apply this on subfolder:
Error while get parent folder: Value does not fall within the expected range.
Is there any workaround?
Many thanks