UpsertContext Class

An instance of UpsertContext is passed to the upsertRows() method on your Datasource.Connection class. This class provides context information about the upsert request to the implementor of upsertRows().

DataSource

The Apex Connector Framework creates the contet for operations. Context is comprised of parameters about the operations, which other methods can use. An instance of the UpsertContext class packages these parameters into an object that can be used when an upsertRows() operation is initiated.

The following are properties for UpsertContext.

  • rows

    List of rows corresponding to the external object records to upsert.

  • tableSelected

    The name of the table to upsert rows in.

List of rows corresponding to the external object records to upsert.

public List<Map<String,ANY>> rows {get; set;}

Type: List<Map<String,Object>>

The name of the table to upsert rows in.

public String tableSelected {get; set;}

Type: String