Is there a way to get SectorID, IndustryID, GicsID, MarketID, and GroupID for a foreign ticker without the use of SetForeign()? The reason I ask is that GetFnDataForeign() doesn't support these fields.
I am not aware of the AFL function that return various IDs with ticker symbol. However, using CategoryGetSymbols function will return a comma separate string of ticker symbols for each index.
AFL Function Reference - CATEGORYGETSYMBOLS (amibroker.com)
With the list of ticker symbol, use either StrFind or StrMatch function to determine which IDs that a particular ticker symbol belongs.