Newer Version Available

This content describes an older version of this product. View Latest

getCaseIdFromEmailHeaders(headers)

Returns the case ID corresponding to the specified email header information.

Signature

public static Id getCaseIdFromEmailHeaders(List<Messaging.InboundEmail.Header> headers)

Parameters

headers
Type: List<Messaging.InboundEmail.Header>

Return Value

Type: Id

Usage

The headers argument is used to find the matching Case Id using values for the in-reply-to and references headers based on RFC 2822.