Encompass – The following code creates a new custom event on every Borrower Contact to indicate that a marketing email was sent to them.

The following code creates a new custom event on every Borrower Contact to indicate that a marketing email was sent to them.

using System;
using System.IO;
using EllieMae.Encompass.Client;
using EllieMae.Encompass.BusinessObjects;
using EllieMae.Encompass.Query;
using EllieMae.Encompass.BusinessObjects.Contacts;

class ContactManager
{
public static void Main(string[] args)
{
// Open the session to the remote server
Session session = new Session();
session.Start(“myserver”, “mary”, “maryspwd”);

// Get all of the Borrower Contacts
ContactList contacts = session.Contacts.GetAll(ContactType.Borrower);

// For each contact, add a new event to indicate the mailing was sent
for (int i = 0; i < contacts.Count; i++)
contacts[i].Events.Add(“Marketing mail sent”);

// End the session to gracefully disconnect from the server
session.End();
}
}

You may also like...

Popular Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.