Skip to main content

previewBomImport

Requires permission biddesk:assembly:manage.

What an import would do: the tree, each problem by row and the SKUs not found. Writes nothing. Requires Bid Desk, the engineered-product feature and permission to manage assemblies.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query PreviewBomImport($input: BomImportInput!) {
previewBomImport(input: $input) {
canCommit
previewHash
problemTotal
assemblies {
blockedByDraft
new
newVersionOfReleased
total
}
}
}

Variables:

{
"input": {
"fileKey": "string",
"mapping": [
{
"field": "string",
"header": "string"
}
],
"sheet": "string",
"structure": "LEVEL"
}
}

Response:

{
"data": {
"previewBomImport": {
"canCommit": true,
"previewHash": "string",
"problemTotal": 0,
"assemblies": {
"blockedByDraft": 0,
"new": 0,
"newVersionOfReleased": 0,
"total": 0
}
}
}
}
previewBomImport(
input: BomImportInput!
): BomImportPreview!

Arguments​

previewBomImport.input ● BomImportInput! non-null input​

The sheet and mapping to preview.

Type​

BomImportPreview object​

What a BOM import would do. Nothing is written.