> 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/setting-up/additional-config/apex-classes.md).

# Apex Classes

Global Apex classes and invocable actions you can call from your own flows and code.

The package exposes a small set of global Apex classes and invocable actions. Use them when a flow needs data that the packaged screens do not give you, or when an order must be raised without the agent screens.

<table><thead><tr><th width="250">Class or action</th><th>Use it to</th></tr></thead><tbody><tr><td><a href="https://docs.limio.com/salesforce/setting-up/additional-config/apex-classes/create-order-apex.md">Create Order</a></td><td>Raise a Limio order from Apex, without the acquisition screens.</td></tr><tr><td><a href="https://docs.limio.com/salesforce/setting-up/additional-config/apex-classes/dynamic-variables.md">OrderPreview</a></td><td>Read the priced preview of an order in a flow or a formula.</td></tr><tr><td><a href="https://docs.limio.com/salesforce/setting-up/additional-config/apex-classes/apex-subscriptionrefined.md">SubscriptionRefined</a></td><td>Read the subscription fields that the table columns and the action rules use.</td></tr><tr><td><a href="https://docs.limio.com/salesforce/setting-up/additional-config/apex-classes/generate-pdf-from-flow.md">Generate PDFs from Flow</a></td><td>Render an email template as a PDF and attach it to a record.</td></tr><tr><td><a href="https://docs.limio.com/salesforce/cpq/generate-links-from-apex.md">Generate 2 Links for Limio Quote</a></td><td>Generate the preview and checkout links of a Limio Quote from a flow.</td></tr></tbody></table>

Class access is granted through the **Assisted Sales - Admin** and **Assisted Sales - User** permission sets. An org on a cloned permission set must add new classes by hand after an upgrade. See [Permission Sets](https://docs.limio.com/salesforce/setting-up/detailed-salesforce-setup/permission-sets-overview.md).


---

# 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/setting-up/additional-config/apex-classes.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.
