Categories query not returning anything

112
0
10-26-2020 03:32 AM
jeroenverdonschot
New Contributor

Hi all,

I have  question. I want to query my Portal with this queryParams:

          const queryParams = {
            query: "owner:" + portal.user.username,
            sortField: "numViews",
            sortOrder: "desc",
            categories: ["amsterdam"],
            num: 20,
          };

I added a category called "amsterdam" to several Web Maps in my portal.

But when I use portal.queryItems(queryParams) it returns an empty array.

Please help, I do not manage to figure this one out.

thanks,

Jeroen

0 Kudos
0 Replies