Automation Code Snippet for specific Order Suffix
Posted: 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
OrderSuffix.DS():
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
OrderSuffix.DS():