Trying to get the import operation executed using PowerShell code. Using below set of code lines the import operation is working fine, so all good till this point. But, I'm stuck when trying to get information related to imported items (updated, created items etc). Trying to get similar set of information what Content Porter tool generates after successful import operation, sample pasted below.
Did not find any relavant methods defined in these two classes ProcessInfo
and ProcessSummary
which can serve the purpose. Is there any specific way to get this info fetched using PS?
===================================================================
$uploadId = UploadPackageFromFile "D:\GT\package.zip"
$importInstruction = new-object Tridion.ContentManager.ImportExport.ImportInstruction
$impexp = GetImportExportServiceClient //Endpoint=http://localhost/webservices/ImportExportService201601.svc/basicHttp
$processId = $impexp.StartImport($uploadId, $importInstruction)
$varProcessInfo = $impexp.GetProcessInfo($processId)
$varProcessInfo.ProcessSummary
====================================================================
Expected output pasted below:
Total items imported: 8
New items created: 1
Existing items updated: 6
Items partially imported: 0
Items failed: 0
New Created Items:
/webdav/030C%20Shared%20XYZ%20Content%20en_US/Building%20Blocks/Content/ABC/Biography/Mike.xml
Updated items:
/webdav/010%20Global%20Schemas/Building%20Blocks
/webdav/020C%20Global%20Content%20en_US/Building%20Blocks/Content
/webdav/030C%20Shared%20XYZ%20Content%20en_US
/webdav/030C%20Shared%20XYZ%20Content%20en_US/Building%20Blocks/Content/ABC
/webdav/030C%20Shared%20XYZ%20Content%20en_US/Building%20Blocks/Content/ABC/Biography
/webdav/030C%20Shared%20XYZ%20Content%20en_US/Building%20Blocks/Content/ABC/Biography/Peter.xml