GetCustomer Method

Important

This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.

Gets the customer using the specified customer account number.

Namespace:  Microsoft.Dynamics.Commerce.Runtime.Client
Assembly:  Microsoft.Dynamics.Commerce.Runtime.Client (in Microsoft.Dynamics.Commerce.Runtime.Client.dll)

Syntax

'Declaration
Public Function GetCustomer ( _
    customerAccountNumber As String _
) As Customer
'Usage
Dim instance As CustomerManager
Dim customerAccountNumber As String
Dim returnValue As Customer

returnValue = instance.GetCustomer(customerAccountNumber)
public Customer GetCustomer(
    string customerAccountNumber
)
public:
Customer^ GetCustomer(
    String^ customerAccountNumber
)

Parameters

Return Value

Type: Microsoft.Dynamics.Commerce.Runtime.DataModel.Customer
The customer record or NULL when no matching record was found.

See Also

Reference

CustomerManager Class

Microsoft.Dynamics.Commerce.Runtime.Client Namespace