I did it!
Ha ha fuck you InDesign.
If anyone’s actually interested, what I was trying to do was import data using a plugin that uses that code in the box to auto-format the imported data… and I wanted it to automatically flow to create as many new pages as necessary to fit the data.
Two hours spent reading the stupid plugin’s manual to make that code work.
Another hour on Google trying to get the autoflow to work and auto-create pages.
Goddamn I deserve a raise. This is so not the level of work in my job description.