Hi,
I'm trying to setup some automation to add / update users in assets.
The problem im running into is when trying to add "Department"
I have another scheme tree called department as well so i want this to be linked with the employee object "department"
I achieved this using AQL when doing a manual json / csv import with this:
Name = ${Department}
This is what im using right now:
$myObject = [PSCustomObject]@{
objectTypeId = 9
attributes = @(
@{objectTypeAttributeId = 10
objectAttributeValues = @(@{value = $Name})
}
,
@{objectTypeAttributeId = 11
objectAttributeValues = @(@{value = $Department})
}
)
}
return $myObject | ConvertTo-Json -Depth 5
}
However i want to automate this process so it's automatically linked and updates every day / week or so.
What am i missing here?
BUMP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.