Topic Options
#56614 - 01/08/19 10:28 AM Variable Filename
AnthonyEmilio Offline
OL Newbie

Registered: 12/14/18
Posts: 7
Good Morning,

I have a question regarding naming a file that I am saving. Currently I am creating a pdf in workflow with the "PlanetPress Image" action. The PDF is currently being named with the orginal filename. However now I want to add the first, last, and middle name of the person the data is about.

This is where I am currently at to add the persons name:

%O_@(1,10,10,1,50,KeepCase,Trim), @(1,11,11,1,50,KeepCase,Trim), @(1,12,12,1,50,KeepCase,Trim)

This works and i get something like "export_John,Smith,.pdf"

My issue is that I want to add a condition to display the comma if there is a middle name (line 12) but not display it if there is no middle name.

How would I write that condition in the "filename" textbox available in the plugin?

Best Regards,

#56615 - 01/08/19 11:04 AM Re: Variable Filename [Re: AnthonyEmilio]
Jean-Cédric Offline
OL Expert

Registered: 10/03/16
Posts: 471
Loc: Québec, Canada
You can't.

What you can do is build a script that will do this previously in your process, store the result into a variable and call that variable when you are there.