Hi everyone,
I'm trying to get devices from Intune via a API Call and want to count the returrned devices.
I successfully get the devices via the API Call.
I then parse the JSON from that API Call output to retrieve the devicename and id (needed later in the flow).
Now I want to count the returned devices and set a variable based on the count, say:
returned device=0 devices found, var=0
returned devices =1 device found, var=1
returned devices > 1, var=more devices found
My next idea was to convert the object returned from the API Call to an array and then count that, but I didn't get this working either.
Can someone help me with this?
Regards,
Sarah