Objet type Creation

Mar 28, 2013 at 11:10 AM
Hello,

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?

Regards,

Théo M
Mar 28, 2013 at 11:21 AM
Edited Mar 28, 2013 at 11: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 11: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 10:18 AM
Hello,

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

Regards,

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

Thanks
May 23, 2013 at 4:38 PM
Hi,

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

Regards,
Theo