Use this method to import a message.
HRESULT ImportObject( [in] WGN_IMPORTOBJ_TYPE objectType, [in] WGN_IMPORTOBJ_FORMAT objectFormat, [in] WGN_IMPORTOBJ_TRANSPORT objectTransport, [in] VARIANT objectData, [in] BSTR messageID, [in] DWORD importSource, [in] BSTR XmlMessageAttributes );
Where:
Specifies the type of object to import (e-mail or IM). For details, see the typedef WGN_IMPORTOBJ_TYPE.
Specifies the format of the object to import. For details, see the typedef WGN_IMPORTOBJ_FORMAT.
Specifies the method used to transfer data to the RDI. For details, see the typedef WGN_IMPORTOBJ_TRANSPORT.
Specifies the source data being imported.
Is a string that uniquely identifies the message in the archive. This will be the string given to CA's Remote Data Manager (RDM) to enable it to retrieve the message contents.
Important! The messageID parameter is critical! You can use any string as the identifier but it must be unique and the identifiers must be managed correctly to ensure that CA DataMinder can retrieve the full details for imported e-mails. Your application must be able to use this string, when called by the RDM, to access the exact same message.
Is a fixed integer that identifies the source archive. If there is no link to a remote archive, it is WGN_ACTIVEIMPORTSOURCE_NONE.
Optional XML containing additional metadata for the message.
Input combinations for ImportObject method
WgnRDI.dll does not support all message Format-Type-Transport permutations.
Return values for ImportObject method
Indicates that an invalid argument was passed to the method.
Indicates an unknown import source. This value is returned if the importSource parameter is set to an invalid number.
"A mail event could not be created because the available disk space was less than the configured threshold."
This error message may indicate that the cache is not being cleared quickly enough. If you get this error, wait before retrying to import the e-mail. If you continue to get this error, then you must halt the archive process and flag an alert.
Copyright © 2014 CA.
All rights reserved.
|
|