Hi,
When I am testing simple calls like the one below, I get random results! Sometimes it returns 0, sometimes it returns 25 (which is the default pageSize), and sometimes it returns 41, which is the actual number of pages in this space. There's NO consistency. Even adding the -PageSize parameter doesn't change the outcome at all.
(Get-ConfluencePage -Query ("Space='TestSpace'")).count
However, if I don't use Query, but instead use the -SpaceKey parameter, it seems to work every time. It's just that I need to do more than just the SpaceKey filter, and when searching large spaces, this takes a lot longer time to process than the -Query parameter (when its actually working as it should).
Could you look into this and see if there's anything wrong with the code or if there's something I can do differently?
Best regards,
Magnus Jakobsen