---
schema_version: "1"
id: 6951d438834f311b41d3ca24ae7b36c0413ebfd2d79b2cc0986c0f9060332af3
title: "Interface: InvocationEvent<A>"
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/salesforce-functions/functions/guide/nodesdk/interfaces/invocationevent.md
canonical_url: https://developer.salesforce.com/docs/platform/functions/guide/invocationevent.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4af2eb709f65f065515286f2f018c0d673e63851857ff8d30efff723628ec69d
products:
  - Salesforce Functions
---
[sf-fx-runtime-nodejs](https://developer.salesforce.com/docs/platform/functions/NODE_README.md) / InvocationEvent

# Interface: InvocationEvent<A\>

An InvocationEvent is representative of the data associated with the occurrence of an event, and supporting metadata about the source of that occurrence.

## Properties

### data

The payload of the event

• `Readonly` **data**: A


---

### dataContentType

The media type of the event payload that is accessible in data

• `Optional` `Readonly` **dataContentType**: _string_


---

### dataSchema

The schema that the event payload adheres to.

• `Optional` `Readonly` **dataSchema**: _string_


---

### id

The platform event occurrence id for event invocation.

• `Readonly` **id**: _string_


---

### source

An URI which identifies the context in which an event happened. Often this will
include information such as the type of the event source, the organization publishing the event, or the process that produced the event.

• `Readonly` **source**: _string_


---

### time

The timestamp of when the occurrence happened. If the time of the occurrence
cannot be determined then this attribute may be set to some other time
(such as the current time), however all producers for the same source must be consistent in this respect. In other words, either they all use the actual time of the occurrence or they all use the same algorithm to determine the value used.

• `Optional` `Readonly` **time**: _string_


---

### type

A value describing the type of invocation. The format of this is producer defined and might include information such as the version of the type.

• `Readonly` **type**: _string_

