Trucating a job name to use in email subject

Post Reply
abonsey
Member
Posts: 142
Joined: Fri May 24, 2013 5:10 pm

Trucating a job name to use in email subject

Post by abonsey »

Being a Newbie I hope somebody can help.

I have a file attached to an email.

It's name being AA_1234567_BBBBBB_CCCCCCC.pdf

I'd like the subject matter to be 1234567

How do I truncate [Job.Name] ??



Thanks for any help
dkelly
TOP CONTRIBUTOR
Posts: 658
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

Trucating a job name to use in email subject

Post by dkelly »

There are multiple ways depending on if the file name parts do or do not change length. Index, segment or regular expressions
abonsey
Member
Posts: 142
Joined: Fri May 24, 2013 5:10 pm

Trucating a job name to use in email subject

Post by abonsey »

Hi. Thanks for the response. The part before the first "_" does not change. Also the 1234567 does not change length. Therefore I'd be looking to somehow truncate from the beginning.
dkelly
TOP CONTRIBUTOR
Posts: 658
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

Trucating a job name to use in email subject

Post by dkelly »

In variables window select Job->NameProper and use segment "4-10"
abonsey
Member
Posts: 142
Joined: Fri May 24, 2013 5:10 pm

Trucating a job name to use in email subject

Post by abonsey »

Thanks. I'll give that a go.
Post Reply