Trying to get pages on custom code

Hi team,

Can anyone please assist,
We are trying to get global pages on custom code.
ap.pages.get() is giving us an empty array and await ap.pages.get() only gets pages added on a menu for human tasks after a task is clicked.

We are trying to do this on a deployed environment.

1 Like

Hi Simphiwe you can try await ap.pages.getGlobalPages() this gives a list of all your global pages (and their ids). Is that what you are looking for?

2 Likes

Yes, that worked Uthara. Thank you.

1 Like