---
title: "Contentstack Management - Global Fields Actions"
description: "Use the Contentstack Management Global Fields action to automate fetching a specific or all the global fields from a stack."
url: "https://www.contentstack.com/docs/agent-os/contentstack-management-global-fields-actions"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-08-11"
---

# Contentstack Management - Global Fields Actions

A [Global Field](/docs/headless-cms/about-global-field) is a reusable field (or group of fields) that you can define once and reuse in any content type within your stack. You can perform global field based operations using the following Contentstack Management Global Field actions.

![Select\_an\_Action.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt7a8636055b819467/6628caf6b8b5cefe28dc1f97/Select_an_Action.png)

Let’s look at each of these in detail.

## Get All Global Fields

This action fetches the details of all the global fields in a stack.

1.  Under **Choose an Action** tab, select the **Get All Global Fields** action.
2.  On the **Get All Global Fields Configure Action** page, enter the details given below:
    1.  Click **\+ Add New Account** button to connect your Contentstack account as shown in the [Connect your Contentstack Account](/docs/agent-os/about-contentstack-management-actions) step.
    2.  Select a **Stack** and **Branch** from the **Lookup** list.
        
        **Note:** By default, the **main** branch is selected (even if the **Branch** field is empty).
        
    3.  Click the **Include branch details** checkbox to include the branch details of the global fields.  
        ![Select\_Fields.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt4476849f54abb78a/6628cae9528fc1e8b055b524/Select_Fields.png)
3.  Once done, click **Proceed**.
4.  Click **Test Action** to test the configured action.  
    ![Test\_Action.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/bltadd15580ff3bc08b/6601a8d101e3118155cb0b30/Test_Action.png)
5.  The output will be shown as below. Click the **Save and Exit** button.  
    ![Save\_Exit.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt1b4a5f5425928dd4/6628cae9b05441da7c99fec9/Save_Exit.png)

## Get a Single Global Field

This action fetches the details of a single global field in a stack.

1.  Under **Choose an Action** tab, select the **Get a Single Global Field** action.
2.  On the **Get a Single Global Field Configure Action** page, enter the details given below:
    1.  Click **\+ Add New Account** button to connect your Contentstack account as shown in the [Connect your Contentstack Account](/docs/agent-os/about-contentstack-management-actions) step.
    2.  Select a **Stack**, **Branch**, and **Global Field** from the **Lookup** list.
        
        **Note:** By default, the **main** branch is selected (even if the **Branch** field is empty).
        
    3.  Click the **Include branch details** checkbox to include the branch details of the global field.  
        ![Select\_Fields.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blte1e48d9e29d79faf/6628cadd528fc1d68c55b51b/Select_Fields.png)
3.  Once done, click **Proceed**.
4.  Click **Test Action** to test the configured action.  
    ![Test\_Action.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/bltadd15580ff3bc08b/6601a8d101e3118155cb0b30/Test_Action.png)
5.  The output will be shown as follows. Click the **Save and Exit** button.  
    ![Save\_Exit.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/bltd224fdeeb4be0ebe/6628caddbb637257d31dfa6b/Save_Exit.png)