A Loan Associate is a User or UserGroup which has been assigned to a role within the loan. A loan associate is typically responsible for completing one or more tasks during the lifetime of a loan.
public static void Main(string args)
// Open the session to the remote server
Session session = new Session();
session.Start(“myserver”, “mary”, “maryspwd”);
// Open a loan from the My Pipeline folder and retrieve the information on the current lock
Loan loan = session.Loans.Folders[“My Pipeline”].OpenLoan(“Example#1”);
// Loop thru the assigned loan associates and display the user info for each.
foreach (LoanAssociate la in loan.Associates)
// Write the role abbreviation and the user’s name
if (la.AssociateType == LoanAssociateType.User)
Console.WriteLine(la.WorkflowRole.Abbreviation + “: ” + la.User.FullName);
else if (la.AssociateType == LoanAssociateType.UserGroup)
Console.WriteLine(la.WorkflowRole.Abbreviation + “: ” + la.UserGroup.Name);
// Close the loan file