Grooper 21.00.0082 is available as of 12-12-2023! Check the Downloads Discussion for the release notes and to get the latest version.
Grooper 23.00.0044 is available as of 06-20-2024! Check the Downloads Discussion for the release notes and to get the latest version.
Grooper 23.1.0024 is available as of 09-03-2024! Check the Downloads Discussion for the release notes and to get the latest version.
Question regarding Parsing information from a Folder Name to Populate a Field
tmartin
Posts: 82 ✭✭
I have a default value expression that currently Grabs the folder name on Import to populate a certain field. The default expression is this:
Link.GetPathSegment(7)
This gets me the 7th segment in the import path. Is there a way to parse a certain piece out of this segment?
This gets me the 7th segment in the import path. Is there a way to parse a certain piece out of this segment?
0
Best Answer
-
tmartin Posts: 82 ✭✭I spoke to several people regarding this question and came to the following solution:
I used a calculate expression that references the field that is grabbing the folder name.
The structure of the folder name is:
"Name" "4-Digit License Number" - "8-Digit Date"
Ex: Martin, Trey 1234 - 20180525
The Calculate Expression is as follows:
Licensee_Name.Substring(0,Licensee_Name.Length-16)
Note: "Licensee_Name" in the expression above is the field in the content model that is grabbing the entire folder name.
0
Answers
Product Manager
mharrison@bisok.com