# Subscription Actions Rules

**LFS version**: requires v12.42 or later

When a subscription is selected in the **Manage Subscriptions flow**, on the next screen users see a **list of available actions** based on the subscription's attributes. This subscription actions list is defined on the backend by a standard Limio Apex class.

This article describes a new tool - **Subscription Actions Rule Rules Builder** - which allows defining custom rules to show different actions for different subscription criteria.

***

### Subscription Actions Rule Rules Builder is based on a new custom object called **Subscription Actions Rule.**

* Navigate to the **Subscription Actions Rule** tab from the App Launcher or from the related tabs list in the Limio Console and create a new rule record.
* Define subscriptions criteria on the left side of the page, and click Save.
* Select the allowed actions on the right, and Save it.<br>

  <figure><img src="/files/rwO0laJQyjpMBVWJGqvh" alt=""><figcaption></figcaption></figure>

**Subscription Criteria** section is where you can set up entry criteria to check against a subscription.

It includes some subscription level attributes (like Status, Term details, Product etc.) and Subscription Offer's Criteria with all the standard and custom attributes defined in the Limio template:<br>

<figure><img src="/files/V0NP2q0aK6u2W00AVO6A" alt=""><figcaption></figcaption></figure>

And action Selector on the right side of the page<br>

<figure><img src="/files/Im3uaASVeb9RoKosfXuA" alt=""><figcaption></figcaption></figure>

* When a user selects a subscription in the **Manage Subscriptions** flow and this subscription **matches the rule's subscription criteria**, only specified actions will be available.<br>

  <figure><img src="/files/ODO5ipklXbIYXtMuKzmz" alt=""><figcaption></figcaption></figure>
* If the subscription does not match any of the rules, displayed actions will default to the existing logic described in [this guide](https://docs.limio.com/integrations/setting-up-limio-for-salesforce/subscription-actions-rules/override-subscription-actions).<br>

  <figure><img src="/files/tqprO8LC1rLVrBbI6i1I" alt=""><figcaption></figcaption></figure>

### Tips

1\. Manage Subscriptions flow triggers **Get Subscription Actions** Apex class and passes down properties from the selected subscription record. Make sure that the following properties are included and mapped correctly:

```
- endDate
- external
- hasDelivery
- isAutoRenewable
- isGift
- isGiftRefundable
- offerPath
- offerProducts
- offerTermLength
- offerTermType
- status
```

### Note

If there are no records of the **Subscription Actions Rule** type available, Limio will fall back on its [internal logic for surfacing actions](https://docs.limio.com/integrations/setting-up-limio-for-salesforce/subscription-actions-rules/override-subscription-actions). Please review this logic to understand how actions are determined in the absence of explicit rules.

#### Related articles: <a href="#h_01hy0kr8vnhaw9psw67241zk55" id="h_01hy0kr8vnhaw9psw67241zk55"></a>

[Override Supported Subscription Actions](/integrations/setting-up-limio-for-salesforce/subscription-actions-rules/override-subscription-actions.md)


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.limio.com/integrations/setting-up-limio-for-salesforce/subscription-actions-rules.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
