OTG and SVF2 are the same thing, just using a different server – OTG is the legacy SVF2. It is a fine detail which isn’t important in your case, but sometimes has its importance as I demoed it yesterday in the Viewer. Petr’s article is exactly what I was mentioning yesterday about the dbid.idx file, but within the Viewer. My suggestion is that you server download that file and do the mapping on your back-end. But if you feel doing the conversion from the Viewer is better for you, that’s ok too and Petr’s article is the way to go.
Now, when you are on BIM360, you cannot force the target format, neither you can choose which format is used for the extraction. As I said, it is either OTG or SVF2 (even if SVF is present since both OTG and SVF2 are post-process of SVF), but the target extraction is OTG / SVF2 – that means Model Derivative will always use SVF2 dbid, and you have no option there.
Exporting to OBJ using Model Derivative will use SVF2 dbid. That’s why you know need to do some mapping since the toolkit works exclusively with SVF. This problem was unexpected, because the toolkit return you all geometries, material and textures, and I did not knew you were not using that feature which would have saved you from this issue.