Home Service Manager

Need help using SMLets to determine whether a reviewer was ADDED

Leigh_KildayLeigh_Kilday Member Ninja IT Monkey ✭✭✭✭

I want to know whether a reviewer was added to a RA using PowerShell.

Here's a snippet of my script:

$ScsmObjectGuid = "<RA GUID>"<br>$WorkItemObj = Get-SCSMObject -Id $ScsmObjectGuid<br>$WorkItemHistory = Get-SCSMObjectHistory -Object $WorkItemObj

What is returned is always "Modify", yet SCSM shows that the change type was an "Add" or "Remove".

How do I find the correct change type?

Best Answers


  • Options
    Nicholas_VelichNicholas_Velich Cireson Consultant Ninja IT Monkey ✭✭✭✭
    Adding to this, the two relationships at play here are:


    We are grabbing the System.ReviewerIsUser relationship objects in this case.
  • Options
    Leigh_KildayLeigh_Kilday Member Ninja IT Monkey ✭✭✭✭
    Thanks gents!
Sign In or Register to comment.