Forum Discussion

MaelJ's avatar
MaelJ
Comet
2 months ago
Solved

How do I filter AccountSnapshot by site?

Hy everyone,
I'm trying to filter the ‘AccountSnapshot’ results by site. I'm trying to use the ‘siteIDs’ field to target a site.

I tried using the IDs in "AccountSnapshot > sites > id" but it's failed.

However, all the IDs I've used don't work. Do you know what GraphicQL query  I can use to find this ‘siteIDs’?

Thank for your time

  • Hello MaelJ,

    The siteIDs input variable is an array of site IDs (integers), so even if you have a single ID, you have to wrap it in brackets:

     

  • peter's avatar
    peter
    Icon for Cato Employee rankCato Employee

    Hello MaelJ,

    The siteIDs input variable is an array of site IDs (integers), so even if you have a single ID, you have to wrap it in brackets: