Disabling indexes in X++

Hi, I want to set all indexes on all Axapta tables to “enabled = No” (turn them off) using X++ code. Is there anyone out there that can maybe help me out here? Thanks!

Hi You have to go through all tables looping and using DICTTABLE class. Then you can go through the indices of the table. There is a pretty good example in the online help. Enter kerndoc://Classes/DictTable/indexNext in the Axapta Help window and you’ll see it.

Hi, I am just curious - is there any specific reason to disable index across all tables in Axapta? Regards, Harish Mohanbabu