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 |
|---|---|---|---|---|
|
|
String |
Yes |
-- |
The file name for the uploaded binary data (e.g., |
|
|
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 |
|---|---|---|
|
|
String |
Alternative source for the file name. If the |
Applicable Object Type: BD (Binary Data)
XML Route Examples
Upload a file via BD Manager:
<route>
<from uri="file:input/reports?noop=true"/>
<to uri="pfx-api:bdManagerUpload?fileName=report.xlsx&typedId=100.BD"/>
</route>
Upload with file name from the exchange header:
<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
fileNameparameter or theCamelFileNameheader must be set, otherwise the upload may fail. -
Ensure the
typedId(if provided) references a valid BD record in Pricefx.