CreateBoxFileMetadataInstance 2025.10.9.21

Bundle

org.apache.nifi | nifi-box-nar

Description

Creates a metadata instance for a Box file using a specified template with values from the flowFile content. The Box API requires newly created templates to be created with the scope set as enterprise so no scope is required. The input record should be a flat key-value object where each field name is used as the metadata key.

Tags

box, create, metadata, storage, templates

Input Requirement

REQUIRED

Supports Sensitive Dynamic Properties

false

Properties

PropertyDescription
Box Client ServiceController Service used to obtain a Box API connection.
File IDThe ID of the file for which to create metadata.
Record ReaderThe Record Reader to use for parsing the incoming data
Template KeyThe key of the metadata template to use for creation.

Relationships

NameDescription
failureA FlowFile is routed to this relationship if an error occurs during metadata creation.
file not foundFlowFiles for which the specified Box file was not found will be routed to this relationship.
successA FlowFile is routed to this relationship after metadata has been successfully created.
template not foundFlowFiles for which the specified metadata template was not found will be routed to this relationship.

Writes attributes

NameDescription
box.idThe ID of the file for which metadata was created
box.template.keyThe template key used for metadata creation
error.codeThe error code returned by Box
error.messageThe error message returned by Box

See also