Quick Connect Management Shell: it is simple. Part2

In previous post I have described how you can find the workflow run using QC Management Shell. Right after you have found the workflow run you can dip into details of the run. In QC Console you should just click on the selected workflow run and you will get the following picture:

As you can see on the picture, all objects, involved into synchronization, are splited by objects categories, like: Processed object, Object not meet scope conditions, Mapped objects, Objects to map, Not mapped objects,…

To get the number of objects that belongs to the corresponding category, you can use cdmdlet: Get-QCSyncHistoryObjectCategory. This cmdlet accepts the same set of parameters as cmdlt Get-QCSyncHistorySummaryRun and two additional parameters: SummaryRun, SummaryStep. Values of the SummaryRun and SummaryStep parameters you can get as a result of using cmdlet Get-QCSyncHistorySummaryRun.

For example, to get the number of objects that was not provisioned due to errors during the run number 12721:

Get-QCSyncHistorySummaryRun –RunID:12721 | Get-QCSyncHistoryObjectCategory | Where-Object {$_.ObjectCategoryID -like "ProvisionErrors"}

Where "ProvisionErrors" it is ID of the object category. In expression you can use on of the following IDs:

  • ProcessedSrcObj
  • ProccessedTgtObj
  • SrcObjOutOfScope
  • TgtObjOutOfScope
  • MappedSrcObj
  • MappedTgtObj
  • NotMappedSrcObj
  • NotMappedTgtObj
  • SrcObjToMap
  • TgtObjToMap
  • SrcAmbiguities
  • TgtAmbiguities
  • SrcObjToUnmap
  • TgtObjToUnmap
  • ObjToProvision
  • ObjToUpdate
  • ObjToDeprovision
  • ProvisionRequestErrors
  • UpdateRequestErrors
  • DeprovisionRequestErrors
  • SrcObjMappedThisRun
  • TgtObjMappedThisRun
  • SrcObjUnmappedThisRun
  • TgtObjUnmappedThisRun
  • ProvisionedObj
  • ProvisionErrors
  • UpdatedObj
  • UpdateErrors
  • DeprovisionedObj
  • DeprovisionErrors