Forum Discussion

JacekLewandows1's avatar
JacekLewandows1
Qrew Member
2 years ago

Retrieving All Application Pages by API without JavaScript - How?

Is there an API that will show all the pages ids for an application, or get all pages?

I see there is an API call for getting a specific page, API_GetDBPage, but that works only if you know the page ids beforehand. 



------------------------------
Jacek Lewandowski
------------------------------
  • To my knowledge, no. If you're able to do this programatically though you can try looping from 1 to 100 or some number beyond what you think a natural limit would be and do getDBPage. The response will return item not found at which point you would just skip over it or log it in a way that you want. Different page types will return different error codes such as a home page can't be returned so you and just trial and error the different page types to handle accordingly. 



    ------------------------------
    Chayce Duncan
    ------------------------------