BatchResponse interface

Interface representing the server response from the Messaging.sendEach() and Messaging.sendEachForMulticast() methods.

Signature:

export interface BatchResponse 

Properties

Property Type Description
failureCount number The number of messages that resulted in errors when sending.
responses SendResponse[] An array of responses, each corresponding to a message.
successCount number The number of messages that were successfully handed off for sending.

BatchResponse.failureCount

The number of messages that resulted in errors when sending.

Signature:

failureCount: number;

BatchResponse.responses

An array of responses, each corresponding to a message.

Signature:

responses: SendResponse[];

BatchResponse.successCount

The number of messages that were successfully handed off for sending.

Signature:

successCount: number;