Skip to main content

Index Document

Add a document to the index or update an existing document.

Note, this action belongs to Glean Indexing API, therefore requires using the Indexing Token connection method.

External Documentation

To learn more, visit the Glean documentation.

Basic Parameters

ParameterDescription
Allow All UsersAllow any Glean user to view the document.
Allowed UsersAn array of objects that each represent a user that can view the document. For example:
[  {    "email": "string",    "datasourceUserId": "string",    "name": "string"  },  {    "email": "string2",    "datasourceUserId": "string2",    "name": "string2"  },]
For more information on this struct, please refer to Glean's documentation.
Body Binary ContentBase64 encoded binary content.
Body MIME TypeThe MIME type of the document body to be indexed for search.
Body Text ContentThe body's text content.
DatasourceThe datasource name to associate with the document during indexing.
Document IDThe unique identifier for the document within the datasource. Maximum value of 200 characters is allowed.Note, The ID can only contain alphanumeric characters, and should be stable - the same document must keep the same ID across uploads.If an ID is not provided, the given ID would be a hash of the View URL.
Document Summary MIME TypeThe document's summary MIME type.
File NameThe source file name. Specify this attribute if there is no explicit title for the document and the content is sourced from a file.
Object TypeThe type of the document. Can't contain spaces or underscores.
Permissions Allowed GroupsA comma separated list of groups that can view the document.
Summary Binary ContentBase64 encoded binary content.
Summary Text ContentThe summary's text content.
View URLThe permalink for viewing the document. Note: viewURL is a required field for non-entity datasources.

Advanced Parameters

ParameterDescription
ContainerThe container name for the content.
Container Datasource IDThe datasource specific ID of the container.
Created AtThe creation time of the document.

Workflow Library Example

Index Document with Glean and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop