Reading from Object List?

Hello,

I am currently reading in the ‘proxyAddresses’ attribute from Active Directory accounts. When retrieving these it is returned like this:

object[8] { “prop1”, “prop2”, “prop3”, “prop4”, “prop5”, “prop6”, “prop7”, “prop8” }

image
I blocked off most of the image as I’m not sure if I am allowed to be sharing it but you can see it is object[8]. How can I loop through this to pull each individual string out?

Thanks!

@afc.tsun
have a look here:

Hello, thanks for the quick reply!
Currently having this error with it.

Edit: nvm… I had changed which it was pulling. This errors though if that object only has one thing inside the array though right?
Edit2: Got it thank you very much :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.