You are viewing limited content. For full access, please sign in.

Question

Question

How can I use the last three folders in the folder string as tokens for field data

asked on December 10, 2014

I am trying to reverse engineer my system. Currently users enter metadata and put the document in an intake folder, workflow then uses that metadata to name and file the document. For this project, I want users to be able to put the document in a folder and then have workflow enter the metadata. Example: A document is created in folder \\myrepository\dept\district\project\phase . Then workflow will populate fields District, Project and Phase based on the folder names. Is pattern matching and tokens the right path to follow? If so, any suggestions on the regex syntax would be appreciated.

0 0

Replies

replied on December 10, 2014

Use the token, split it by '\' and then use an index to specify which item to use. You can have it start from the end with the index, so 1 will be the last item, 2 will be second to last. 

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.