pfx-api:bdManagerUpload

pfx-api:bdManagerUpload

Upload binary data via the BD (Binary Data) Manager in Pricefx. Used for uploading files such as documents, spreadsheets, or other binary content.


URI Format

pfx-api:bdManagerUpload?fileName=report.xlsx&typedId=100.BD

Parameters

Parameter

Type

Required

Default

Description

fileName

String

Yes

--

The file name for the uploaded binary data (e.g., report.xlsx, data.pdf).

typedId

String

No

--

The typedId of the BD entity to update. If omitted, a new binary data record may be created.

Required Header:

Header

Type

Description

CamelFileName (Exchange.FILE_NAME)

String

Alternative source for the file name. If the fileName parameter is not set, the component reads from this header.

Applicable Object Type: BD (Binary Data)


XML Route Examples

Upload a file via BD Manager:

XML
<route>
    <from uri="file:input/reports?noop=true"/>
    <to uri="pfx-api:bdManagerUpload?fileName=report.xlsx&amp;typedId=100.BD"/>
</route>

Upload with file name from the exchange header:

XML
<route>
    <from uri="direct:uploadBinaryData"/>
    <setHeader name="CamelFileName">
        <constant>quarterly-report.pdf</constant>
    </setHeader>
    <to uri="pfx-api:bdManagerUpload?typedId=200.BD"/>
</route>

Common Pitfalls

  • The exchange body must contain the binary file content (byte array or InputStream).

  • Either the fileName parameter or the CamelFileName header must be set, otherwise the upload may fail.

  • Ensure the typedId (if provided) references a valid BD record in Pricefx.