Page 1 of 1

Listing Agent Contact Email

Posted: Fri May 07, 2021 9:45 am
by tburke
Attempting to draft a code snippet looking for a Listing Agent Contact Email address and I cannot get it to work. Any ideas? the examples I have are for the Buyer or Seller contacts and don't exactly translate. Thanks in advance.

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

# Look for email address in all ListingAgentBrokers contacts
# Context is ListingAgentBrokers
def HasListingAgentBrokersEmail():
# For the Main Contact
if Context.ListingAgentBrokers.MainPerson
Return True
# For the Main Person Email field
if Context.Email:
return True

HasListingAgentBrokersEmail()