Skip to main content
Solved

Rename Files by adding prefix from table attribute

  • April 12, 2024
  • 1 reply
  • 66 views

vxn43
Supporter
Forum|alt.badge.img+18

I have 4 files I need to rename. To rename them I need to add the values of an attribute in a table to each of their names; please refer to the screenshot for this example:

SS000001.PNG

would be renamed 18085SS000001.PNG by adding the value from the STCLID Attribute in the table in the screenshot to the filename. 

 

Seems as a first step would be “move” the values in the STCLID attribute to the <missing> rows?

 

What is the best way to go about this?

 

Best answer by liamfez

If you need the STCLID values on the other features (features 5-8 in your example) to work with it there, you could utilize the FeatureMerger or a FeatureJoiner (using “path_filename” and “PHOTO” attributes to do the merge/join). You can use the StringConcatenator to concatenate the “PHOTO” (or “path_filename”) and “STCLID” attributes.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

liamfez
Influencer
Forum|alt.badge.img+44
  • Influencer
  • Best Answer
  • April 12, 2024

If you need the STCLID values on the other features (features 5-8 in your example) to work with it there, you could utilize the FeatureMerger or a FeatureJoiner (using “path_filename” and “PHOTO” attributes to do the merge/join). You can use the StringConcatenator to concatenate the “PHOTO” (or “path_filename”) and “STCLID” attributes.