---
schema_version: "1"
id: fe5a4d9a23201bbd962d5ff6e2bf49f7c45c3c9d22199c7b1544bbdc144671c6
title: CustomNotifActionDef
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_tooling/tooling_api_objects_customnotifactiondef.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_customnotifactiondef.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f9bc604f8377609eeb65f1c2ff2eca05953e615f4ac271ba1720e3055dfac0ef
description: Represents the metadata associated with a mobile action group notification definition. This object is available in API version 66.0 and later.
---
# CustomNotifActionDef

Represents the metadata associated with a mobile action group notification definition. This object is available in API version 66.0 and later.

![Important](https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/images/icon_note_important.png)

#### Important

Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.

## Supported Calls

create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()

## Special Access Rules

## Fields

| Field | Details |
| --- | --- |
| ActionGroupId | 
Type

reference

Properties

Create, Filter, Group, Sort

Description

Unique identifier for the field.

This field is a relationship field.

Relationship Name

ActionGroup

Relationship Type

Master-detail

Refers To

CustomNotificationActionGroup (the master object)



 |
| ActionName | 

Type

string

Properties

Create, Filter, Group, Sort

Description

Name of the mobile action group. Use a unique name per custom notification type. The field can contain only underscores and alphanumeric characters. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.



 |
| ActionOrder | 

Type

int

Properties

Create, Filter, Group, Sort, Update

Description

Order in which this action appears in the mobile action group. Select a number between 1 and 3, as there are 3 maximum actions in a group.



 |
| ActionType | 

Type

picklist

Properties

Create, Filter, Group, Restricted picklist, Sort, Update

Description

Possible values are:

- NotificationApiAction
- Share





 |
| Label | 

Type

string

Properties

Create, Filter, Group, Sort, Update

Description

Label for the action.



 |
| TargetId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

This relationship field is the name of the ApexClass that implements handling of the action. TargetId is used only when the ActionType is set to NotificationApiAction.

Relationship Name

Target

Refers To

ApexClass



 |

![Note](https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/images/icon_note.png)

#### Note

CustomNotifActionDef is exposed in Tooling API to user profiles with the View Setup and Configuration permission. To create and edit mobile action groups, the Customize Application permission is required.