Hi there
I have a script that goes after certain values of attributes in azure
most of attributes are straight forward so like true/false id name
one of them is not the “real” value so it returns 0,1,2,3,4,5 which translate to their real values created manually somewhere like company1 company2 company3…
the return values in table will look like this:
deviceName deviceEnrollmentType ownerType TagIds
WIN10GPO windowsCoManagement company {1}
WIN10OFFICE userEnrollment company {0}
is there away I could show the ‘tagids’ as their real values?
Thanks
Usually curly braces indicate an array instead of a simple value. But without you sharing your code it’ll be hard to recommend something meaningful. You could try to use a
Thanks
Yes this attribute can represent more than one value(in my case there will only be one value and that’s what i am after)
i thought of maybe using switch with values translation
To answer your question, it’s an array, so you need to process it with a for loop to convert each tag in the array to the real value. Also, using += is not an efficient way to build objects, just put a variable in front of the loop and everything that is returned rolls up to that variable: