---
schema_version: "1"
id: 7f76e56cb885470a3f27f3be5df05cb8bc50e954dd413a1c2766479b3f1da7a2
title: RespondWhen
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-apis/respondwhen_appex.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/respondwhen_appex.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1f6edee1f87bbccc9e99de53254cd4b2b9815b136ebc6cba3310e28b58e17c1f
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# RespondWhen

Sends response via email or HTTP post for asynchronous call. Can send to separate URLs for different actions as necessary.

### Properties

| Name                     | Data Type                     | Description                                                                           |
| ------------------------ | ----------------------------- | ------------------------------------------------------------------------------------- |
| `Always`                 | [RespondWhen](https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/respondwhen.md) | Indicates a response is always sent.                                                  |
| `Never`                  | [RespondWhen](https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/respondwhen.md) | Specifies that a response is never sent for an asynchronous process.                  |
| `OnCallComplete`         | [RespondWhen](https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/respondwhen.md) | Specifies that a response is sent when an asynchronous call is complete.              |
| `OnConversationComplete` | [RespondWhen](https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/respondwhen.md) | Specifies that a response is sent when an asynchronous conversation is complete.      |
| `OnConversationError`    | [RespondWhen](https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/respondwhen.md) | Specifies that a response is sent when an asynchronous conversation returns an error. |
| `OnError`                | [RespondWhen](https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/respondwhen.md) | Specifies that a response is sent when an asynchronous process returns an error.      |
