ESODecoded

GetItemInstanceId

ESO Lua API function — used by 46 of the 3,030 addons we indexed (combined 15,720,618 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetItemInstanceId([Bag|#Bag] bagId, integer slotIndex)

Returns: integer:nilable id

Real usage — from Potion Maker (for Alchemy Crafting)

			if FCOIsMarked then
				return FCOIsMarked(GetItemInstanceId(bagId, slotIndex), -1)
			else

Short excerpt from the shipping addon Potion Maker (for Alchemy Crafting)its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
Master Merchant 3.03,883,523
Potion Maker (for Alchemy Crafting)3,765,616
Loot Log1,608,502
Auto Category - Revised1,180,586
Dustman1,178,205
AlphaGear 2 (Builds, Gear, Skills, Banking)848,683