I want to create a root Business Process Type using Tridion Core Service Session Aware Client (8.5). But I have a problem creating a Business process type.
using namespace Tridion.ContentManager.CoreService.Client
Using namespace System.Uri
Import-Module Tridion-CoreService
$user = "domain\user"
if(-not $credential){
$credential = Get-Credential -UserName $user -Message "Remote Server Tridion Administrator Account"
}
$tcsconnection = @{
hostname = "cms.poc2.domain.internal"
version = "Web-8.5" # 2011-SP1, 2013, 2013-SP1, Web-8.1, Web-8.5
ConnectionType = "default" # Default, SSL, LDAP, LDAP-SSL, netTcp, Basic, Basic-SSL
CredentialType = "Windows"
}
Set-TridionCoreServiceSettings @tcsconnection
$settings = Get-TridionCoreServiceSettings
try
{
$client = Get-TridionCoreServiceClient
$client.ChannelFactory.Credentials.Windows.ClientCredential = $credential
$client.GetApiVersion()
}
catch
{
Write-Output "Failed to connect TridionCoreService on $($tcsconnection.hostname)"
}
$businessProcessType = New-Object BusinessProcessTypeData
$businessProcessType.Title = "DooHickey"
8.5.0
The property 'Title' cannot be found on this object. Verify that the property exists and can be set. At line:35 char:1 + $businessProcessType.Title = "DooHickey" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : PropertyAssignmentException
Get-Member $businessProcessType
?