Objet type Creation

Mar 28, 2013 at 10:10 AM

I'm working on Fim and i try to create scripts for speed up installation.
I use New-FimImportObject to create objets, but is it possible to create a new resource type?


Théo M
Mar 28, 2013 at 10:21 AM
Edited Mar 28, 2013 at 10:32 AM
I think i just have to create a
New-FimImportObject -ObjectType ObjetTypeDescription
No problem for the DisplayName attribut, but what is the "System name" of "System name" ? :)
Mar 28, 2013 at 10:38 AM
Same problem to create a new attribute, the type of resource is AttributeTypeDescription, but if i want to create a new one, i need at least a DisplayName and a System name...
Mar 29, 2013 at 9:18 AM

The "System name" attribute is "Name" for both ObjetTypeDescription and AttributeTypeDescription


Mar 29, 2013 at 9:21 AM
Edited Mar 29, 2013 at 9:22 AM
Thank you Sylvain :)
Regards, Theo
May 23, 2013 at 2:51 PM
But if i want to take the localized name attribut wich attribut should i take

May 23, 2013 at 3:38 PM

I can't help you for the localized name attribut but for a general way you can use that :

$uri = "http://fimURL:port" $xpath = "/$TypeResource[$TypeAttribute='$Val']" Write-Host "Search $xpath... "
$exportObject = Export-FIMConfig -customConfig $xpath -Uri $uri
Write-host "Export in $file"
$exportObject | ConvertFrom-FIMResource -File $file

to export all attributs and get name/value.

Hope it will help you