Renaming based on XML data pull

Post Reply
ndalessandro
Newbie
Posts: 1
Joined: Thu Feb 27, 2020 8:58 pm

Renaming based on XML data pull

Post by ndalessandro »

Hello!

I am currently working on building a workflow that renames a job based on XML metadata pulled from a PDF form filled out by clients. For example, they enter their province, and I am trying to Use Search and Replace based on singular string variables. If they enter "Ontario", it is replaced by ON in the job's new name. Would this be the correct way to go about it, or would scripting an If/then statement would be more appropriate?

I am new to switch so I am not sure what the best way to go about this is...thanks!
Malcolm Mackenzie
Member
Posts: 121
Joined: Wed Mar 22, 2017 5:05 pm
Location: London, UK
Contact:

Re: Renaming based on XML data pull

Post by Malcolm Mackenzie »

Hi
Not a script expert so my thoughts.
You need to assign the xml to the job.
From here you can create a var in the PitStop Variables to be
if Ontario the value is ON.
The use this in change name.
Post Reply