> For the complete documentation index, see [llms.txt](https://docs.limio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.limio.com/salesforce/servicing-subscriptions/manage-subscriptions-flow/subflow-cancel/add-cancel-reasons.md). Agents can also search and read this documentation through its [MCP server](https://docs.limio.com/~gitbook/mcp).

# Cancel Reasons

The cancel journey requires specifying a reason for cancelling. This is presented as a dropdown menu to choose from when performing the cancel action:

<figure><img src="https://284256719-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUgE12kxtw8dDbuEZGzbI%2Fuploads%2Fgit-blob-ddc446f4ff224892d5d558066bdd1cbfe32acd11%2Fimage%20(262).png?alt=media" alt=""><figcaption></figcaption></figure>

The value set for the picklist is dynamically determined by the custom metadata value stored in the Subscription Action metadata of ic Assist Config:

<figure><img src="https://284256719-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUgE12kxtw8dDbuEZGzbI%2Fuploads%2Fgit-blob-0010e542e897eeabd5e2ce1fa3b3bba2e1953d27%2Fimage%20(263).png?alt=media" alt=""><figcaption></figcaption></figure>

Values being rendered are listed in the cancelReasons array, and then retrieved in apex by the class "Get Cancel Reasons" and then stored in the flow variable CancelReasons.

<figure><img src="https://284256719-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUgE12kxtw8dDbuEZGzbI%2Fuploads%2Fgit-blob-f38da0ed7f7889e5f611294f6c6c6f37888c4e9f%2Fimage%20(264).png?alt=media" alt=""><figcaption></figcaption></figure>

The CancelReasons flow variable is of type list of i42as\_\_PicklistChoice.

If cancel reasons are stored somewhere else, it's possible to replace this apex action with another custom action, as long as the results are of the same type i42as\_\_PicklistChoice and then stored in the flow variable CancelReasons. The Cancel Screen flow element will read this value and render the list dynamically.

A reason for cancelling is mandatory when performing a cancel action. The values displayed can be customised and maintained by a Salesforce admin by editing the cancelReasons array within the ic Assist Config custom metadata (Subscription Action entry). Subsequent releases of the Limio for Salesforce managed package will not overwrite these values, as the metadata is designed to be user-overridable.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.limio.com/salesforce/servicing-subscriptions/manage-subscriptions-flow/subflow-cancel/add-cancel-reasons.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
