---
title: ChannelTargetResult
slug: data-platform/connect-platform/app-sdk-api-reference-classes-channeltargetresult
docTags: 
createdAt: 2026-08-05T20:06:37.104Z
---

[OCP App SDK](docId\:gxEU_0AA37IEZJK-uoVcT)

***

[OCP App SDK](docId\:gxEU_0AA37IEZJK-uoVcT) / ChannelTargetResult

# Class: ChannelTargetResult

Defined in: [src/app/lib/ChannelTargetResult.ts:16](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/lib/ChannelTargetResult.ts#L16)

Result of [Channel.target](docId:9MPJ0gwsoXoAubpkwFgyD).

## Extends

- [`` `FormResult` ``](docId:-r0C81fTwTqoXjXByTdja)

## Constructors

### Constructor

:::BlockQuote
**new ChannelTargetResult**(`targeting?`): `ChannelTargetResult`
:::

Defined in: [src/app/lib/ChannelTargetResult.ts:22](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/lib/ChannelTargetResult.ts#L22)

### Parameters

### targeting?

[`` `CampaignTargeting` ``](docId\:Hp7r_M5uyn-0sBIlc2GTJ)\[]

the complete set of targeting requirements, if already known

### Returns

`ChannelTargetResult`

### Overrides

[`` `FormResult` ``](docId:-r0C81fTwTqoXjXByTdja).[`` `constructor` ``](<./#function Object() \{ \[native code] }>)

## Properties

### errors

:::BlockQuote
`protected` **errors**: `object` = `{}`
:::

Defined in: [src/app/lib/FormResult.ts:4](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/lib/FormResult.ts#L4)

### Index Signature

\[`field`: `string`]: `string`\[]

### Inherited from

[`` `FormResult` ``](docId:-r0C81fTwTqoXjXByTdja).[`` `errors` ``](docId\:GWRZD0rP4MVXA78SMqQul)

***

### toasts

:::BlockQuote
`protected` **toasts**: `object`\[] = `[]`
:::

Defined in: [src/app/lib/FormResult.ts:5](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/lib/FormResult.ts#L5)

### intent

:::BlockQuote
**intent**: [`` `Intent` ``](docId:_9hudfE1-ZW7RrTE5XYot)
:::

### message

:::BlockQuote
**message**: `string`
:::

### Inherited from

[`` `FormResult` ``](docId:-r0C81fTwTqoXjXByTdja).[`` `toasts` ``](docId\:GWRZD0rP4MVXA78SMqQul)

## Methods

### addError()

:::BlockQuote
**addError**(`section`, `field`, `error`): `this`
:::

Defined in: [src/app/lib/ChannelTargetResult.ts:51](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/lib/ChannelTargetResult.ts#L51)

Add an error to display to the user for a particular form field (implicitly scoped to the content settings form)

### Parameters

### section

`string`

the section within the form that the error applies to

### field

`string`

the field within the section that the error applies to

### error

`string`

message to display to the user

### Returns

`this`

***

### addTargeting()

:::BlockQuote
**addTargeting**(`targeting`): `this`
:::

Defined in: [src/app/lib/ChannelTargetResult.ts:31](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/lib/ChannelTargetResult.ts#L31)

Add a single targeting requirement

### Parameters

### targeting

[`` `CampaignTargeting` ``](docId\:Hp7r_M5uyn-0sBIlc2GTJ)

requirement to add

### Returns

`this`

***

### addToast()

:::BlockQuote
**addToast**(`intent`, `message`): `this`
:::

Defined in: [src/app/lib/FormResult.ts:13](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/lib/FormResult.ts#L13)

Display a toast to user, such as, "Successfully authenticated with `<Integration>`" or
"Authentication failed, please check your credentials and try again."

### Parameters

### intent

[`` `Intent` ``](docId:_9hudfE1-ZW7RrTE5XYot)

one of the supported intents that will affect how the toast is displayed

### message

`string`

to display in the toast

### Returns

`this`

### Inherited from

[`` `FormResult` ``](docId:-r0C81fTwTqoXjXByTdja).[`` `addToast` ``](docId\:GWRZD0rP4MVXA78SMqQul)

***

### setTargeting()

:::BlockQuote
**setTargeting**(`targeting`): `this`
:::

Defined in: [src/app/lib/ChannelTargetResult.ts:40](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/lib/ChannelTargetResult.ts#L40)

Provide the complete set of targeting requirements

### Parameters

### targeting

[`` `CampaignTargeting` ``](docId\:Hp7r_M5uyn-0sBIlc2GTJ)\[]

requirements to provide

### Returns

`this`
