ImportFile method

Creates a new file in eRoom by linking to an existing external document.

Syntax


C++

HRESULT ImportFile(
   IERUContainer* pContainer,
   BSTR ExternalDocumentID,
   BSTR PathToExternalFolder,
   LONG CreateOptions,
   IERUItem** ppNewFile)

Scripting languages
Object.ImportFile(
   pContainer as IERUContainer,
   ExternalDocumentID
as String,
   PathToExternalFolder as String,
   CreateOptions as Long
)

Parameters


pContainer

An eRoom item with an attachments box.

ExternalDocumentID

The string reference to the external document. For Documentum, this must be a Chronicle ID.

PathToExternalFolder

A semicolon-separated list of containers' ObjectIDs.

CreateOptions

One or more create options chosen from the enum ERUCreateOptions, logically OR'ed together. Valid create options are erCreateOptMakeNameUnique [optional, default = erCreateOptNone].

ppNewFile

Upon return, an IERUItem pointer to the new linked file.

Return value


C++

The return code.

Scripting languages

Upon return, an IERUItem pointer to the new linked file.

Home

Applies to

IERUExternalStorageProvider