---
title: GetActions
slug: sdks/getactions
docTags: 
createdAt: 2026-01-01T10:31:30.893Z
---

### Description

- The **getActions** method retrieves experience-based actions from the personalization engine using the data provided in the [Context](https://developer.monetate.com/sdks/objects#mDSKQ).&#x20;
- It supports both single-context and multi-context evaluations, depending on the data configured in the [Context](https://developer.monetate.com/sdks/context-layer-implementation-guide#5fC0Y).

:::::Tabs
::::Tab{title="Android"}
### &#xA;Method Signature

:::CodeblockTabs{indent="1"}
getAction Method New

```java
public void getActions(
    Context context,
    String[] actionTypes,
    boolean includeReports,
    ActionsCallback callback
)
```
:::

### &#xA;Description

:::Paragraph{indent="1"}
Retrieves experience-based actions from the personalization engine using the data provided in the Context object.
:::

### Parameters (Short)

| <font color="#2166ae">**Parameter**</font> | <font color="#2166ae">**Description**</font>                                                                                                                                                              |
| ------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| context                                    | Contains all context and event data required for evaluation                                                                                                                                               |
| actionTypes                                | A list of [action types ](https://developer.monetate.com/sdks/events-action-types#6Rta6)to be retrieved. Supports both single and multiple action types.                                                  |
| includeReports                             | Determines whether reporting data should be returned in the response. Use <font color="#15803D">**true**</font> to include reporting data; use <font color="#C2410C">**false**</font>****<br />otherwise. |
| callback                                   | Returns actions data or error                                                                                                                                                                             |

### &#xA;Example

:::CodeblockTabs{indent="1"}
getAction Method New

```java
personalization.getActions(
    context,
    new String[] { "monetate:action:OmnichannelJson" },
    false,
    new ActionsCallback() {

        @Override
        public void onSuccess(String actions) {
            System.out.println("Actions Data:" + actions);
        }

        @Override
        public void onError(Exception e) {
            System.out.println("Error occurred: " + e.getMessage());
        }
    }
);
```
:::


::::

::::Tab{title="IOS"}
### Method Signature

:::CodeblockTabs{indent="2"}
getAction Method New

```java
public func getActions(context:ContextObj,
                            arrActionTypes:[String],
                            includeReporting: Bool
    ) -> Future<[[String: Any]], Error>
```
:::

### &#xA;Description

Retrieves experience-based actions from the personalization engine using the data provided in the Context object.

### Parameters (Short)

| <font color="#2166ae">**Parameter**</font>**** | <font color="#2166ae">**Description**</font>****                                                                                                                                                          |
| ---------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| context                                        | Contains all context and event data required for evaluation                                                                                                                                               |
| arrActionTypes                                 | A list of [action types ](https://developer.monetate.com/sdks/events-action-types#6Rta6)to be retrieved. Supports both single and multiple action types.                                                  |
| includeReporting                               | Determines whether reporting data should be returned in the response. Use <font color="#15803D">**true**</font> to include reporting data; use <font color="#C2410C">**false**</font>****<br />otherwise. |
| Future                                         | Returns actions data or error                                                                                                                                                                             |

### Example&#x20;

:::CodeblockTabs{indent="1"}
getAction Method New

```swift
objPersonalization.getActions(context: contextObj,  
                              arrActionTypes: ["monetate:action:OmnichannelJson"], 
                              includeReporting: false)
                .on(success: { (actions) in
                        self.handleAction(actions: actions)
                }) { err in
                    print(err.localizedDescription)
                    }
```
:::
::::

::::Tab{title="React-Native"}
### Method Signature

:::CodeblockTabs{indent="2"}
getAction Method New

```typescript
 async getActions(
        actionType: string | string[],
        context?: any,
        includeReporting: boolean = true,
        errorCallback?: (result: { status: "success" | "failed"; error?: unknown }) => void
    ): Promise<{ data: unknown; errors?: unknown }> {}

```
:::

### &#xA;Description

Retrieves experience-based actions from the personalization engine using the data provided in the Context object.

### Parameters (Short)

| <font color="#2166ae">**Parameter**</font>**** | <font color="#2166ae">**Description**</font>****                                                                                                                                                          |
| ---------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| context                                        | Contains all context and event data required for evaluation                                                                                                                                               |
| arrActionTypes                                 | A list of [action types ](https://developer.monetate.com/sdks/events-action-types#6Rta6)to be retrieved. Supports both single and multiple action types.                                                  |
| includeReporting                               | Determines whether reporting data should be returned in the response. Use <font color="#15803D">**true**</font> to include reporting data; use <font color="#C2410C">**false**</font>****<br />otherwise. |
| Future                                         | Returns actions data or error                                                                                                                                                                             |

### Example :-

:::CodeblockTabs{indent="2"}
getAction Example

```typescript
  Personalization.getActions(
  ["monetate:action:OmnichannelJson"], 
  monetateContext)
  .then((res: any) => console.log("Action === 1 res", res))
  .catch((err:any) => console.log("Error ===", err)) ;
```
:::
::::

::::Tab{title="Web"}
### Method Signature

:::CodeblockTabs{indent="2"}
getAction Method New

```typescript
 async getActions(
        actionType: string | string[],
        context?: any,
        includeReporting: boolean = true,
        errorCallback?: (result: { status: "success" | "failed"; error?: unknown }) => void
    ): Promise<{ data: unknown; errors?: unknown }> {}

```
:::

### Description

Retrieves experience-based actions from the personalization engine using the data provided in the Context object.

### Parameters (Short)

| <font color="#2166ae">**Parameter**</font>**** | <font color="#2166ae">**Description**</font>****                                                                                                                                                          |
| ---------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| context                                        | Contains all context and event data required for evaluation                                                                                                                                               |
| arrActionTypes                                 | A list of [action types ](https://developer.monetate.com/sdks/events-action-types#6Rta6)to be retrieved. Supports both single and multiple action types.                                                  |
| includeReporting                               | Determines whether reporting data should be returned in the response. Use <font color="#15803D">**true**</font> to include reporting data; use <font color="#C2410C">**false**</font>****<br />otherwise. |
| Future                                         | Returns actions data or error                                                                                                                                                                             |

### Example :-

:::CodeblockTabs{indent="2"}
getAction Example

```typescript
  Personalization.getActions(
  ["monetate:action:OmnichannelJson"], 
  monetateContext)
  .then((res: any) => console.log("Action === 1 res", res))
  .catch((err:any) => console.log("Error ===", err)) ;;
```
:::



###
::::
:::::



###

