Rename maintaining external link - append Text

Hi,

is there any possibility to not replace a text but append a text?
We have our Staging file named like
OurProduct.fmp12

and deploy it to
OutProduct_CUSTOMERNAME.fmp12

but I have not found any option to do that.

Entering $ in “Replace Text” seems to do the trick but fails upon deployment with the message that the file cannot be found in the destination.

Many thanks for any help
Tobias

Hello Tobias,

I think the easiest thing to do is have add a suffix to your staging file. You do need something to replace in each file name.

Something like

OurProduct_DEV.fmp12, or OurProduct_.fmp12

Let’s ask @kduval if he has another idea.

Todd

Sadly we cannot do this easily. Our custom workflow before otto requires the filenames to be like they are right now.

Hmm I don’t think there is an existing way to do this (unless the files all happen to end in the same three letters or something). I’m not sure this is a thing that the FmDeveloperTool supports, I’ll play around with it and see if I can get it working.

-Kyle

Many thanks for trying!

Hey @TobiWahnKenobi ,

Just did some testing of this and I have good news! This is achievable with OttoFMS as it exists now. The OttoDeploy UI doesn’t quite support it fully, but you can get it to work. If you use “.fmp12” as the replace text and “_new_ending.fmp12” as the With text, it will append to the filename. The issue in the OttoDeploy UI is simply that it doesn’t auto calculate the new filename inline, but it will work if you set the operation manually and deploy. The filenames will be correct in the screen to send the deployment. I’ll get the UI working properly in the next version

-Kyle

Hi Kyle

Many thanks! Will this also work for external file references that DO NOT contain the .fmp12? (most don’t).

:heart:

That is a great question, I have no idea. If you could test and report back I’d appreciate it!

-Kyle

Hey @TobiWahnKenobi ,

OttoDeploy 2.3.0 makes the UI work better with the .fmp12 replacement structure we discussed above. Let me know if you get a chance to test if it properly replaces references that don’t have the .fmp12.

-Kyle

1 Like

Just tested it and it worked! (Used Install/Replace but that should nor matter, right=)

1 Like

Thanks for giving that a try! I’ve added a note to the docs about this as well.

-Kyle

No Problem.
I added the .fmp12 to the replacement fields but the FileNames showed properly without the .fmp12. I guess thats why it’s working?

So

Replacement field: .fmp12
Text: _EXT.fmp12

FileName1 source: Test
FileName1 Destination Test_EXT
FileName2 source: Test2
FileName2 Destination Test2_EXT

and it worked!

I did notice that some db references are not renamed. Might be because of case sensitivity. I need to investigate further.

1 Like