Insert Method (PIBatches collection)

             

Inserts an existing PIBatch object into the collection. The owner PICampaign is updated on the server.

 

Syntax

object.Insert PIBatch

The Insert method syntax has these parts:

Part

Description

object

An object expression that evaluates to a PIBatches collection.

PIBatch

An existing PIBatch to add to the collection.

 

Remarks

This method adds a reference of the PIBatch to the PICampaign that contains the PIBatches collection. It also sets the PIBatch.PICampaign  property to this PICampaign . This call will fail if the PIBatch already references a PICampaign. Multiple references to the same PIBatch are not allowed.

The PICampaign property of a PIBatch is read-only. The only method to set this property is by inserting the PIBatch into this collection.

 

Trappable Errors

In addition to generic errors (such as Out of Memory), the following errors may occur:

Error

Description

pseNOGENSERVER

The underlying server abstraction layer could not be accessed.

 

Enabling Operational Intelligence