Open topic with navigation

# ingest

The `ingest` function sends a new document or file to CFS for ingestion. This function differs from `import_into_this_document` because it creates a new document, which is added to the ingest queue.

Note: CFS runs Pre and Post import tasks for the new document. For this reason, do not write a Lua script that calls the `ingest` function without using a condition to prevent the document being continuously ingested.

## Syntax

    ingest( filename [, isTemporary] )

    ingest( doc [, filename [, isTemporary]] )

## Arguments

Argument | Description
--- | ---
`doc` | (LuaDocument) The document to send for ingestion.
`filename` | (string) The name of a file to send for ingestion.
`isTemporary` | (boolean) Specifies whether the file is deleted after ingestion. By default, the file is not deleted (`false`).

## Returns

Boolean. Always returns `true`.

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close We welcome your comments! To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm