Defining the summary document list

Web Services for Microsoft Dynamics GP uses a GetList method to retrieve a list of summary documents that match a specified criteria. You must add a class that defines the structure of the summary document list.

Your summary document list class must follow the required naming conventions. The list class name must begin with "ArrayOf" and include the name of your document summary class.

ArrayOfDocumentSummaryName

The following example shows the name of the summary document list class for Leads:

ArrayOfLeadSummary

Add your list class to the same file and namespace as your summary class. Also, add System.Collections.Generics.List<> as the base class of your list class. When you add List<> as the base class, use the name of your summary document class to specify the type of the list. The following example shows the class declaration for a list of lead summary documents:

public class ArrayOfLeadSummary : List<LeadSummary>

The following sample code shows the complete ArrayOfLeadSummary class. Since the list class uses the base class to perform its actions, it requires no additional fields, properties, or methods.

public class ArrayOfLeadSummary : List<LeadSummary>
{
    public ArrayOfLeadSummary()
    {

    }
}