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.
1. Add “Get Parent Folder” action to a SharePoint Designer 2010 Workflow
2. Configure the Action
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
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