---
title: Metadata Layout Action
description: "Table of Contents - [Page Layout Actions (from the Metadata API)](#page-layout-actions-from-the-metadata-api) - [Parameters](#parameters) - [Example of Use - All](#example-of-use--all) - [Example of Use - Single](#example-of-use--single) - [ss_SysLayoutAction table](#sssyslayoutaction-table) ## **Page Layout Actions (from the Metadata API)** Extracts Salesforce page layout…"
url: "https://sql-sales.com/docs/metadata-layout-action/"
updated: "2026-08-31"
category: Metadata
---

# Metadata Layout Action

Table of Contents

- [Page Layout Actions (from the Metadata API)](#page-layout-actions-from-the-metadata-api)
- [Parameters](#parameters)
- [Example of Use - All](#example-of-use--all)
- [Example of Use - Single](#example-of-use--single)
- [ss_SysLayoutAction table](#sssyslayoutaction-table)

## **Page Layout Actions (from the Metadata API)**

Extracts Salesforce page layout actions (buttons and quick actions), including their placement, grouping, and visibility, enabling analysis of user interaction points across layouts.

Results are loaded to table `ss_SysLayoutAction`

## **Parameters**

| **Parameter** | **Purpose** |
| --- | --- |
| **@ObjectName** | Salesforce Object Name (for example Account). Alternatively pass "All" to retrieve all Objects |
| **@Env** | SQL Sales Environment Name, see Setup |
| **@Special1** | Future use, not currently used |
| **@Special2** | Future use, not currently used |

## **Example of Use - All**

```
exec ss_MetaLayoutAction 'DEMO', 'All'
```

## **Example of Use - Single**

```
exec ss_MetaLayoutAction 'DEMO', 'Account'
```

## **ss_SysLayoutAction table**

| **Purpose** | **Purpose** |
| --- | --- |
| **ObjectName** | API name of the Salesforce object the layout belongs to |
| **LayoutFullName** | API name of the layout (ObjectName-LayoutName format) |
| **LayoutName** | User-friendly name of the layout |
| **ActionGroup** | Group the action belongs to (e.g. Buttons, Quick Actions, ExcludeButtons) |
| **ActionPosition** | Position/order of the action within its group |
| **ActionName** | Name of the action (button or quick action) |
| **ActionType** | Type of action (e.g. Standard Button, Custom Button, Quick Action, Excluded Button) |
