Click or drag to resize

PartyExtensionsGetCustomer Method

Finds a Customer with the specified Party, which is valid for the specified Enterprise company. If more than one Customers are found, they are ordered by Enterprise Company in a descending order.

Namespace:  Aloe.EnterpriseOne.Model.Crm
Assembly:  Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntax
public static Customer GetCustomer(
	this Party party,
	EnterpriseCompany enterpriseCompany
)

Parameters

party
Type: Aloe.EnterpriseOne.Model.General.ContactsParty
The party.
enterpriseCompany
Type: Aloe.EnterpriseOne.Model.GeneralEnterpriseCompany
The enterprise company.

Return Value

Type: Customer
The first customer from the result.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Party. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also