Encompass API Cookbook Part 1

My Encompass API Cookbook

1. Query Filters

Here are the match types I found for the pipeline and contacts filter:

- Equals
- NotEquals
- GreaterThan
- GreaterThanOrEquals
- LessThan
- LessThanOrEquals
- Exact
- StartsWith
- Contains
- MultiValue
- IsEmpty
- IsNotEmpty

Reference

https://forum.elliemae.com/index.php?app=forums&module=forums&controller=topic&id=11757&tab=comments#comment-38199

Example Filter Expression to find borrower contacts with email addresses and birthdates.

{
 "fields":[
     "Contact.FirstName",
     "Contact.LastName",
     "Contact.personalEmail",
     "Contact.Birthdate",
     "Contact.Referral",
     "ContactLoanCount.LoanCount",
     "ContactCompleteLoanCount.LoanCount",
     "Custom.Lead Type",
     "Custom.Lead Source",
     "Custom.Lead ID",
     "Custom.CU Lead ID",
     "Contact.HomePhone",
     "Contact.MobilePhone",
     "Contact.HomeAddress1",
     "Contact.HomeAddress2",
     "Contact.HomeCity",
     "Contact.HomeState",
     "Contact.HomeZip",
     "Contact.ContactType",
     "Contact.Status",
     "Contact.LastModified",
     "ContactOwner.UserName",
     "Opportunity.LoanAmount",
     "Opportunity.Purpose",
     "Opportunity.Amortization",
     "Opportunity.Term",
     "Opportunity.PropertyAddress",
     "Opportunity.PropertyCity",
     "Opportunity.PropertyState"
  ],
 "filter":{
    "operator":"And",
    "terms":[
            { "canonicalName":"Contact.LastModified",
              "value":"2021-01-01",
              "matchType":"GreaterThanOrEquals"
            },
            { "canonicalName":"Contact.personalEmail",
               "value":"@",
               "matchType":"Contains"
            },
            { "canonicalName":"Contact.Status",
              "value":"To Be Deleted",
              "matchType":"NotEquals"
            },
            { "canonicalName":"Contact.Birthdate",
              "value":"1920-01-01",
              "matchType":"GreaterThanOrEquals"
            }
    ]
  },
  "sortOrder":[
     { "canonicalName":"Contact.LastName",
       "order":"Desc"
     }
  ]
}



Comments

Popular posts from this blog

Microsoft Visio 2010 Premium Product Keys

Configure Shoretel Voicemail Notifications to your email inbox using a free SMTP relay

Microsoft Office365 Authentification Methods Settings