MOMScriptAPI.ReturnItems Method

Updated: January 31, 2012

Applies To: System Center 2012 - Operations Manager

Submits multiple MOMDiscoveryData or MOMPropertyBag objects back to Operations Manager, and completes the script.

MOMScriptAPI.ReturnItems

Parameters

None.

None.

The ReturnItems method submits objects to Operations Manager. For this method to be successful, objects must have been previously added to the in-memory array with MOMScriptAPI.AddItem. The objects must either be a group of MOMDiscoveryData objects or MOMPropertyBag objects, but never both.

If you are running this script outside Operations Manager, this XML string can be displayed in a console window. The management pack must be prepared and inserted as a rule to be run from Operations Manager.

To return a single MOMDiscoveryData or MOMPropertyBag object back to Operations Manager, consider using the MOMScriptAPI.Return method.

For an example of how to use ReturnItems, see the MOMScriptAPI.CreateTypedPropertyBag topic.

Platforms: Requires Windows Server 2003, Windows Vista, or Windows Server 2008.

Version: Requires Operations Manager 2007 or System Center 2012 – Operations Manager

Reference