[Q] Accessing the Backpack Container?

How do I access the player’s backpack container? Getting access to the player’s bags (bag slots 1 - 4) is easy. Get the inventory Id and then use the inventory Id to get the itemLink to the bag. However, the bag slot of the backpack (0) can’t be used, e.g.,

local invId = ContainerIDToInventoryID( 0 )

causes the game to issue an “invalid container ID” error.

Suggestions?

Thanks,