Code Assistance
Posted: Thu Nov 09, 2023 8:11 am
Good morning,
I'm trying to add criteria to an automation snippet based on the below code snippet. I would like the system to check the Buyer contacts in the case of a purchase, and the lender contact in the case of a Refinance. If the contact name is "TBD" or "To be determined" the return should be false.
Thank you so much!
I'm trying to add criteria to an automation snippet based on the below code snippet. I would like the system to check the Buyer contacts in the case of a purchase, and the lender contact in the case of a Refinance. If the contact name is "TBD" or "To be determined" the return should be false.
Thank you so much!
Code: Select all
from System import *
from SoftPro.ClientModel import *
from SoftPro.Select.Client import *
from SoftPro.OrderTracking.Client.Orders import *
def OrderContactsNotTBD():
if Context.TransactionType = 'Purchase':
return True
for contact in Context.Buyers:
if contact.Name == 'TBD' or contact.Name == 'To be determined':
return False
else:
return True
OrderContactsNotTBD()