Programmatically retrieve a list of publication topics

What is the most efficient way to programmatically find a list of topics used in a given publication? There is Baseline 2.5 GetReport, which returns a list of baseline topics, but I see two issues with this:

  • Not all topics in a baseline are necessarily used in a publication that uses that baseline (those that show as 'not in use' in the baseline tab in Pub Manager).
  • Maps can become out of sync with a baseline, meaning a baseline could potentially be out of date when queried. It's only when you open a pub in Pub Manager that the resync occurs. 

It seems that more work needs to be done with the list of topics returned by Baseline 2.5 GetReport, such as also parsing the maps. Is this correct? Any better way?

thanks,
Barra

emoji