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():
Automation Code Snippet for specific Order Suffix
-
- Posts: 1377
- Joined: Wed Jan 15, 2014 3:50 pm
- Location: Raleigh, NC
- Contact:
Re: Automation Code Snippet for specific Order Suffix
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.
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, Senior Software Developer, SoftPro