How to Bulk Update Objects Programmatically Using the SDK

How to Bulk Update Objects Programmatically Using the SDK

  • Comments 2
  • Likes

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
Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • 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