Hello, I’m fairly new to Postman and am trying to view all clients on a specific vlan across the organization.
I’ve found the “getNetworkClients” workflow and it works great when specifying vlan and time frame. The issue is that it only allows for one networkId. How can I create a variable that would include all of our networkId’s?
Apologies if this has been answered elsewhere, I did not find another post with the answers.
Hey @agoodman1 
Welcome to the Postman Community! 
Would you be able to provide a little more context, please?
You mentioned finding a workflow, can you share more about what that is and where you found it?
You can create an array or an object as a variable with multiple items, I’m not sure about your full context or your endpoints to suggest anything specific at the moment. If you could elaborate more on that and share a visual example with code or screenshots, it would be easier to help.
Hello and thank you for the reply.
I am attempting to use Postman to view my Meraki environment. It is listed under the Meraki Dashboard API v1.44.0. I’m attempting to use the getNetworkClients collection.
Specifically,
get {{baseUrl}}/networks/:networkId/clients?timespan={{timespan}}
Here is a screen shot of what options I have:
The last path variable is required but will only accept a single networkId and that is where I’m trying to create an array or similar.
No worries — getNetworkClients only accepts a single networkId per request, so the usual approach is to first pull all network IDs from your organization and then loop through them in Postman.
Typical flow:
Use:
GET /organizations/{organizationId}/networks
Save the returned network IDs into an environment variable using a Test script:
let response = pm.response.json();
let networkIds = response.map(n => n.id);
pm.environment.set("networkIds", JSON.stringify(networkIds));
Then use a collection runner or pm.execution.setNextRequest() loop to iterate through each network ID and call:
GET /networks/{{networkId}}/clients
with your VLAN + timespan filters.
So instead of one variable containing all IDs in a single request, you loop through all network IDs dynamically.
Thank you everyone for the help. I can follow most of the solution and will work with someone to get it working as expected.