I am trying to figure out the correct way to Rename a document entry name in Workflow. I want to only capture any characters before a "-" and remove everything after.
Examples: Performance Evaluations - Smith, John A ---- END RESULT = Performance Evaluations
Personnel Action Form - Smith, John A Personal Action Form
Funeral Leave - Smith, John A Funeral Leave
I want to only retrieve "Performance Evaluations" ... However I will have numerous files the same way, so not every file will start with Performance but they all will have a "-" in them. I have been trying in the token dialog and coming up short since the first part of the name is not the same length.
These documents are all coming in from Forms, I could take the easy way out and remove the it in Forms however if in workflow there is an issue with a document you would know where is should have gone without opening it... I am applying a template to all of them as well for metadata.