This documentation supports the 9.1 to 9.1 Service Pack 3 version and its patches of BMC Atrium Core. The documentation for version 9.1.04 and its patches is available here.

To view the latest version, select the version from the Product version menu.

CMDBExportData function

The CMDBExportData function exports the specified class data for a specific qualification.


#include "ar.h"
#include "arextern.h"
#include "cmdb.h"

int CMDBExportData(
      ARControlStruct *control,
      ARQualifierStruct *qualifier,
      ARNameList *attributeGetList,
      CMDBSortList *sortList,
      unsigned int firstRetrieve,
      unsigned int maxRetrieve,
      char *exportBuf,
      ARStatusList *status)

Input arguments

Input argument



The control record for the operation, which contains information about the user requesting the operation and the server on which the operation is to be performed.


A query that determines the set of classes or attributes to retrieve. The qualification can include one or more subclasses and any combination of conditional, relational, and arithmetic operations. For more information about how to construct a qualifier, see "Building qualifications and expressions," in the BMC Remedy Action Request System Workflow Objects Guide.


The list of attribute names to retrieve.


A list of zero or more fields that identifies the sort order for the exported data. Specify a NULL value for this parameter to use no specific sort order.


The first instance to retrieve. A value of 0 (CMDB_START_WITH_FIRST_INSTANCE )represents the first entry and is the default value if no value is set.


The maximum number of instances to retrieve. Use this parameter to limit the instances returned in the query if the qualification does not sufficiently narrow the list. Specify 0 (CMDB_NO_MAX_LIST_RETRIEVE ) to assign no maximum instances.

Return values

Return value



The exported buffer that contains the class data in an XML format.


A list of zero or more notes, warnings, or errors generated from a call of this function.

Was this page helpful? Yes No Submitting... Thank you