mseely
Posts: 40
Score: 1 Joined: 5/4/2008 Status: offline
|
Here is a sample ... Mark --- Set oEvent = CreateObject("Microsoft.SMS.Event") oEvent.EventType = "SMS_GenericStatusMessage_Info" oEvent.SetProperty "Attribute401","Test1" oEvent.SetProperty "Attribute402","Test2" 'Attributes go from 400-404 [Not all need to be used in a message] '400 is generally PackageID '401 is generally AdvertID '402 is generally CollectionID '403 is generally User Account initiating action oEvent.SetProperty "InsertionString1","Info1" oEvent.SetProperty "InsertionString2","Info2" oEvent.SetProperty "InsertionString10","Watermark" 'InsertionStrings go from 1-10. 'The insertionstrings are the strings which would usually be entered into the string that shows up when you view the status messages in the sms console. 'Since The mesaage is a generic message, I usually use one of the insertionstrings as a 'watermark' ' so that when I'm querying the statusmessages i can find the ones relating to what i'm looking for. oEvent.Submit
|