cs-icon.svg

Contentstack Management - Global Fields Actions

A 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

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 to Automate 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
  3. Once done, click Proceed.
  4. Click Test Action to test the configured action.
    Test_Action
  5. The output will be shown as below. Click the Save and Exit button.
    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 to Automate 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
  3. Once done, click Proceed.
  4. Click Test Action to test the configured action.
    Test_Action
  5. The output will be shown as follows. Click the Save and Exit button.
    Save_Exit.png
Was this article helpful?
^