I need to change asset status for example from 'Active' to 'Retired' using ASDK webservices. I looked over the ASDK help. The ItemManagement or Resource Management does not seem to offer any suitable methods.
In ASDK 7.x we could use
Settings | Notification Server | Resource and Data Class Settings | Resource Associations | Asset’s Status
You could use a combination of checking if it has a status, as it doesn't when first created, even though it shows a "Active"
Then if it does break the association
Finally create one
How are you planning on calling the WS?
Have you seen:
Change asset status with ASDK 7.x
You could use Workflow to update the Status.
How does a computer's Status work?
You'd just need to get the Guid of Asset Status and the Resource Association Guid for Asset Status and use those two methods
Data classes for Asset Management Suite
[Settings | Notification Server | Resource and Data Class Settings | Data Classes | Financial Data Classes | Accounting Information]
There are a couple of Articles that maybe of use in pointing you in a direction
Workflow - SMP - ASDK - Asset Ownership
How to change CMDB asset owner in a Workflow project?
SMP 8.0 HF1 added SaveDataClassLight / SaveDataClassRowsLight
You could just build a WF to achieve this, pass in the inputs you need like Date and Reason and map them to the Resource you are Disposing.
Altiris ASDK PowerShell Module
Got it working, many thanks!
But is it possible to set the "DisposalDate", "DisposalReason",etc ,too?
We planning to use the adk.dll / webservice to set asset status for "retrired" computers via powershell.