> ## Documentation Index
> Fetch the complete documentation index at: https://docs.m3ter.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Working with Global Parameters

You can set up four types of *Global parameters* to use in your Workflows when adding and configuring functions:

* **Credentials**
* **Transformation**
* **Workflow**
* **Outgoing webhook**

Using Global parameters can save you much effort when managing and maintaining your Workflows over time. For example:

* **Credentials**. If you have a Workflow that uses several m3ter API functions each of which requires a m3ter Service User Credentials parameter, you can set up a Credentials Global parameter and use this for each function. When the time comes to rotate Service User Credentials and move to using new ones, you can simply update the Credentials Global parameter and assign the new Service User Credentials to it saving you the effort of opening every function and updating each one separately.

When you create Global parameters, their scope is restricted to the Workflow you've created them for - you cannot use a Global parameter across multiple different Workflows.

This topic explains how to add, use, and manage Global parameters for your Workflow using the example of a Credentials Global parameter.

<Note>
  **Other Global parameter types?** You can follow a similar procedure to create, use, and manage other Global parameter types - **Transformation**, **Workflow**, or **Outgoing webhook**.
</Note>

**To create and use Global parameters for m3sh Workflows:**

1. Select **m3sh**:

<img src="https://mintcdn.com/m3ter/gg3zPcB5MVj--Cnq/images/m3shMainNav1.png?fit=max&auto=format&n=gg3zPcB5MVj--Cnq&q=85&s=c26ad71debe6cffcd46844fa558e0e6f" alt="M3sh Main Nav1" title="M3sh Main Nav1" style={{ width:"8%" }} width="61" height="64" data-path="images/m3shMainNav1.png" />

* The **Workflows** page opens.

2. Open a Workflow and select **Global parameters**:

<img src="https://mintcdn.com/m3ter/JDLEbvkzfCbdo08X/images/M3shAutomation261.png?fit=max&auto=format&n=JDLEbvkzfCbdo08X&q=85&s=8b804aa96959d8216b18c523a910a8fd" alt="M3sh Automation261" title="M3sh Automation261" style={{ width:"52%" }} width="424" height="67" data-path="images/M3shAutomation261.png" />

* The **Global parameters** panel opens:

<img src="https://mintcdn.com/m3ter/JDLEbvkzfCbdo08X/images/M3shAutomation263.png?fit=max&auto=format&n=JDLEbvkzfCbdo08X&q=85&s=8c5c7e2feab3a37838d6e717b9f6e772" alt="M3sh Automation263" title="M3sh Automation263" style={{ width:"49%" }} width="436" height="601" data-path="images/M3shAutomation263.png" />

3. Select **Add global parameter>Credentials**. The panel adjusts.
4. Enter a **Name** for the Credentials Global parameter and use the **Credentials** drop-down to select the existing Service User Credentials you want assign to the Global parameter:

<img src="https://mintcdn.com/m3ter/JDLEbvkzfCbdo08X/images/M3shAutomation264.png?fit=max&auto=format&n=JDLEbvkzfCbdo08X&q=85&s=85f05810b705a71f80c6c865932a939c" alt="M3sh Automation264" title="M3sh Automation264" style={{ width:"49%" }} width="436" height="601" data-path="images/M3shAutomation264.png" />

5. Select **Add**. The new Global parameter is listed on the panel:

<img src="https://mintcdn.com/m3ter/JDLEbvkzfCbdo08X/images/M3shAutomation265.png?fit=max&auto=format&n=JDLEbvkzfCbdo08X&q=85&s=b21d8e51d87ac130bde9b3bd9641ac8c" alt="M3sh Automation265" title="M3sh Automation265" style={{ width:"49%" }} width="438" height="599" data-path="images/M3shAutomation265.png" />

* The **Service User Credentials Global** parameter is now available when configuring m3ter API functions that require Service User Credentials.
* You can open the panel at any time and edit or delete a Global parameter.
* As you add Global parameters a count is shown in the main Workflow Builder:

<img src="https://mintcdn.com/m3ter/JDLEbvkzfCbdo08X/images/M3shAutomation266.png?fit=max&auto=format&n=JDLEbvkzfCbdo08X&q=85&s=732299508ca83130528b1a2c6e9f284c" alt="M3sh Automation266" title="M3sh Automation266" style={{ width:"52%" }} width="404" height="40" data-path="images/M3shAutomation266.png" />

<Warning>
  **Important!** When your create a Global parameter, its scope is restricted to the Workflow you created it in and it is not available for use in other Workflows.
</Warning>

6. Suppose you've added a **Get m3ter Entity** API function to your Workflow. When you open the **Edit** panel to configure the function, the **Service User Credentials Global** will be available for selection for **Credentials** under **GLOBAL PARAMETERS**:

<img src="https://mintcdn.com/m3ter/JDLEbvkzfCbdo08X/images/M3shAutomation268.png?fit=max&auto=format&n=JDLEbvkzfCbdo08X&q=85&s=c9b596eecf46efb6970744b3656308db" alt="M3sh Automation268" title="M3sh Automation268" style={{ width:"82%" }} width="898" height="872" data-path="images/M3shAutomation268.png" />

7. When the date arrives for rotating credentials under your security safeguarding policy, you can open the **Global parameters** panel and edit the **Service User Credentials Global** parameter to update it by assigning a new Service User Credentials to it:

<img src="https://mintcdn.com/m3ter/JDLEbvkzfCbdo08X/images/M3shAutomation269.png?fit=max&auto=format&n=JDLEbvkzfCbdo08X&q=85&s=f88e1bde3cc1e03531869cb181bdae41" alt="M3sh Automation269" title="M3sh Automation269" style={{ width:"52%" }} width="437" height="599" data-path="images/M3shAutomation269.png" />

* All functions you've configured in your Workflows to use the **Service User Credentials Global** will now use the updated Credentials assigned to the Global parameter for authentication.
