Automation Code Snippet for specific Order Suffix

Questions about and code samples for automation process code snippets within Select.
Post Reply
Posts: 2
Joined: Wed Jul 03, 2019 2:08 pm

Automation Code Snippet for specific Order Suffix

Post by lsinn » Fri Jul 26, 2019 2:56 pm

I am trying to limit an automation to run on files with a specific suffix and am not getting positive results.

I would like the automation to add a task when a file has a order suffix of .DS

I have the following but am not able to get it to work.

from System import *
from SoftPro.ClientModel import *
from SoftPro.Select.Client import *
from SoftPro.OrderTracking.Client.Orders import *

def OrderSuffixDS():

# Fail the condition if the Order Number does not end with DS
if Context.Suffix.endswith == 'DS'
return True


Posts: 1057
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC

Re: Automation Code Snippet for specific Order Suffix

Post by BobRichards » Fri Jul 26, 2019 3:24 pm

One problem is the function name is "OrderSuffixDS" but you call it by a different name at the end of the code "OrderSuffix.DS".

I can't tell anything about your indentation in the code block. Please put you code between "code" tags (the editor button labelled "</>") and the condition wording so I can determine the context.
Bob Richards, Software Developer, SoftPro

Post Reply