How to Bulk Update Objects Programmatically Using the SDK

How to Bulk Update Objects Programmatically Using the SDK

  • Comments 2

Here’s an example of how to update objects “in bulk” programmatically using the SDK.  In this example, I’ll get all the incidents in the system and set their status to Pending.

image

This examples uses the IncrementalDiscoveryData class which is essentially a “bucket” that you can add things to which are all submitted to the server at once with a .Commit().

Sample Visual Studio console application is attached.

Attachment: PendingIncidents.zip
Leave a Comment
  • Please add 8 and 5 and type the answer here:
  • Post
  • How to create SCCM connect with SDK, i know how to create it use Powershell.

  • Hi Travis,

    Does IncrementalDiscoveryData provides transaction like support where if one of the operation fails then the whole batch of operations are rolled back?

    ~Mayur

Page 1 of 1 (2 items)