Hello,
I'm trying to edit my existing PowerShell script that created the device group but I'm a bit confused on the formatting needed for the custom attribute.
For device group creation, I looked at the forums and copied the example of using:
$devicegroup = @{}
$devicegroup["Name"] = $Name
$devicegroup["Path"] = $Path + $Name
$devicegroup["Icon"] = "Red"
$devicegroup["Kind"] = "Regular"
I tried changing it around to try to mimic the json on the API page but not luck, even tried doing:
$customAttribute = '{ "Attributes" : [ { "AttributeName":"StoreNumber", "AttributeValue":"1234"}]}'
but that is also failing on me.
Anyone have any suggestions?