Get-FLCBOM

Retrieves the BOM of an FLC Item.

Syntax

Get-FLCBOM -Workspace <String> -ItemId <Long> [<CommonParameters>]
<#
PARAMETER
    -Workspace
        Required                true

    -ItemId
        Required                true

    <CommonParameters>
        This cmdlet supports the common parameters: ErrorAction, ErrorVariable
#>

Directly passing an Item object:

Get-FLCBOM -InputObject <PSObject> [<CommonParameters>]
<#
PARAMETER
    -InputObject
        Required                true
        Accepts pipeline input: true

    <CommonParameters>
        This cmdlet supports the common parameters: ErrorAction, ErrorVariable
#>

Parameters

Type

Name

Description

String

Workspace

The name of the workspace that contains the header Item

Long

ItemId

The ID of the BOM header Item

Item

InputObject

The Fusion 360 Manage header Item.

Return type

BomRow[] ← on success.
empty ← on failure. Exception/ErrorMessage can be accessed using $Error.

Remarks

The Cmdlet returns a single-level list of all the direct BOM line items for the passed Fusion 360 Manage header Item.

The passed -Workspace has to be configured properly and must allow viewing the according BOM information in the Bill of Materials Tab.

Each linked item is located only once in the BOM and the returned line items can be located in different Workspaces.
For linked items from revision-controlled workspaces the cmdlet returns the exact versions.

Examples

To use the examples below a Fusion 360 Manage PLM demo Tenant is required:

Display the direct BOM line items for an Item in Fusion 360 Manage

Connect-FLC -Tenant 'your_tenant_name' -ClientId 'your_client_id' -ClientSecret 'your_client_secret' -UserId '[email protected]'
$bomRows = Get-FLCBOM -Workspace 'Items' -ItemId 8070

#Print BOM data similar to the 'Basic' view in the Fusion Manage BOM tab
$bomRows | sort-object {$_.Bom_PositionNumber} | Format-Table Bom_PositionNumber,Number,Title,Bom_Quantity,'Bom_Qty Pos',Bom_Source

<#
Bom_PositionNumber Number    Title                                                   Bom_Quantity Bom_Source
------------------ --------- ------------------------------------------------------- ------------ ----------
1                  368-00002 custom rubber hand grip surround for MK1 steering wheel          1.0      Vault
2                  368-00003 Grip back                                                        1.0      Vault
3                  600-00001 Standard single push control button                              4.0          
4                  402-00001 Block                                                            1.0      Vault
5                  699-00002 Gear Shift Paddle Assembly                                       2.0
6                  402-00007 M-ST-1020                                                        1.0      Vault
7                  368-00006 Control Unit Housing Cover                                       1.0      Vault
8                  402-00008 Steering Wheel Central Control Housing Back Plate                1.0      Vault
9                  368-00007 Central steering column branding cover                           1.0
10                 085-00003 Push Button                                                      1.0      Vault
11                 085-00004 Push Button                                                      2.0      Vault
12                 368-00008 Main housing unit for the MK 1 Mono steering wheel               1.0      Vault
13                 368-00009 Steering Wheel Gasket                                            1.0      Vault
14                 085-00005 Push Button                                                      1.0      Vault
15                 085-00006 Push Button                                                      2.0      Vault
16                 180-00002 Control Unit PCB Housing                                         1.0      Vault
17                 699-00003 Mono MK1 Steering Wheel Locking Ring Assembly                    1.0      Vault
18                 690-00002 ZS06 PCB Final                                                   2.0      Vault
#>

Error handling, analyze why retrieving BOM line Items failed using $Error

Connect-FLC -Tenant 'your_tenant_name' -ClientId 'your_client_id' -ClientSecret 'your_client_secret' -UserId '[email protected]'
$item = (Get-FLCItems -Workspace 'Customers' -Filter '"Autodesk Novi"')[0]

$bomRows = $item | Get-FLCBOM

if(-not $bomRows){
   $Error[0].Exception #Returns "FORBIDDEN: User ****: access VIEW_BOMS denied..."
}