Item link in macro

how do I do it?this no longer works

GetItemInfo(201326)

And do what with it?

/run print(GetItemInfo(201326))

Because the item information has to be retrieved from the server and cached, it may not work first time (or second… if you repeat it quickly)

See:

Has information on how to wait for the server return.

I Want to have item tooltip in a macro

As in something like:

/run GameTooltip_SetDefaultAnchor(GameTooltip,UIParent) GameTooltip:SetItemByID(201326) GameTooltip:Show()

Just throwing this out there:

#showtooltip

The first item used in the macro will show up. Can also do this:

#showtooltip Bob’s Very Best Trinket