---
title: "defineDynamicTrigger()"
description: "Define a Dynamic Trigger"
---
## Parameters
The options for the dynamic trigger.
Used to uniquely identify a DynamicTrigger
An event from an [Integration](/integrations) package that you want to attach to the
DynamicTrigger. The event types will come through to the payload in your Job's run.
An external source fron an [Integration](/integrations) package
## Returns
```ts example
const dynamicOnIssueOpenedTrigger = client.defineDynamicTrigger({
id: "github-issue-opened",
event: events.onIssueOpened,
source: github.sources.repo,
});
```