AxdUnit.createList Method [AX 2012]

Creates the documents in the XML string as transactions in the database and returns the entity keys of the created transactions.

public AifEntityKeyList createList(
    XML _xml, 
    AifEndpointActionPolicyInfo _actionPolicyInfo, 
    AifConstraintListCollection _constraintListCollection)

Run On

Server

Parameters

_xml
Type: XML Extended Data Type
An XML string that contains the data (transactions) to persist to the database.
_actionPolicyInfo
Type: AifEndpointActionPolicyInfo Class
An instance of the AifEndpointActionPolicyInfo class that specifies the value mapping to perform; otherwise, an empty class.
_constraintListCollection
Type: AifConstraintListCollection Class
A collection of lists that contains the constraints that are identified for each document.

Return Value

Type: AifEntityKeyList Class
A list that contains the entity keys that define each created transaction.

The createList method is implemented on the AxdBase class. If a document does not provide the corresponding action type (ReceiveDocumentList), the createList method must be overridden on the document class for the createList method to throw an error if called.

Community Additions

ADD
Show: