AnsweredAssumed Answered

is there a command for the string builder which can trim the substitution parameter "%elementpath%"?

Question asked by TobiasKalmer on Jan 23, 2018
Latest reply on Jan 24, 2018 by Roger Palmen

Hello everyone!,

 

is there a command for the string builder which can "trim" the substitution parameter "%elementpath%"?

 

I have the following elementpath of a new created element: companyname\country\companysite\unit\number of unit.

From that elementpath a want the string unit as a result. So I thought about programming a command that counts the numbers of backslashes. Then let's say I want the string between the fourth and the fifth backslash. Is that possible? How could I do that? I already read the Guide to Substitution Syntax in AF-EF Data References -v2.pdf document about the stringbuilder commands but I did not find any solution for my problem in that document. Thank you very much in advance!

 

best regards

Tobias Kalmer

Outcomes