Hallo zusammen,
ich versuche mich gerade mit der SDK zu beschäftigen um einige abläufe zu vereinfachen, sofern ich mir das ganze einwenig aneignen kann.
Und hier stocke ich schon
bekommen zum beispiel bei dem Befehl
Remove-EmpirumGroup
Der Parameter "Group" kann nicht gebunden werden. Der Wert "hier steht die GroupID" vom Typ "System.String" kann nicht in den Typ
"Matrix42.SDK.Contracts.Models.IEmpirumGroup" konvertiert werden.
Den fehler mit dem System.String habe ich eigentlich bei allen meiner test gehabt, vermutlich mache ich das was falsch....
Vielleicht kann mich jemand in die richtunge richtung schubsen.
Danke und Gruß
SDK Fehlermeldung - System.String
Moderator: moderators
-
- Moderator
- Posts: 7967
- Joined: 13. Dec 2004, 23:10
- Location: Adendorf/Lüneburg
Re: SDK Fehlermeldung - System.String
Dies ist ein Beispielscript zum Löschen der Konfigurationsgruppe "Test1" (kann irgendwo im Baum sein) - vielleicht hilft es:
# Define the connection information
$ServerName="SRVWSM001"
$Port=9200
$UserName="imagoverum\wsmservices"
$Password="Matrix42"
# Connect to the Empirum-API
$session = Open-Matrix42ServiceConnection -ServerName $ServerName -Port $Port -UserName $UserName -Password $Password
$group = $session.groups | Where{ $_.Name -eq "Test1" -and $_.GroupType -eq "ConfigurationGroup" }
Remove-EmpirumGroup -Session $session -Group $group -Verbose
# Define the connection information
$ServerName="SRVWSM001"
$Port=9200
$UserName="imagoverum\wsmservices"
$Password="Matrix42"
# Connect to the Empirum-API
$session = Open-Matrix42ServiceConnection -ServerName $ServerName -Port $Port -UserName $UserName -Password $Password
$group = $session.groups | Where{ $_.Name -eq "Test1" -and $_.GroupType -eq "ConfigurationGroup" }
Remove-EmpirumGroup -Session $session -Group $group -Verbose
Hendrik Ambrosius / Senior Presales Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.
Re: SDK Fehlermeldung - System.String
Hallo Herr Ambrosius,
Vielen Dank.
Hat mich schon mal in die richtige Richtung gebracht, bzw. hat mir schonmal geholfen.
Gruß
Vielen Dank.
Hat mich schon mal in die richtige Richtung gebracht, bzw. hat mir schonmal geholfen.
Gruß
Who is online
Users browsing this forum: No registered users and 3 guests