---
title: "Replacement Variables Table"
canonical: "https://help.agiloft.com/space/A2508SD/134061239/Replacement+Variables+Table"
format: markdown
---
The Replacement Variables table is a background table that can be used to support any of the process tables, such as Approvals, Contracts, Sourcing Events, or Tasks. Replacement Variable records store a variable chain used to pull in values from a linked field relationship. Generally, these variables are copied into template records, such as in the [Approval Templates Table](https://agiloft-public.atlassian.net/wiki/spaces/A2508SD/pages/134061692), and then used to dynamically assign records or set other field values when a process table record is generated from a template.

![image](media://e105adf2-7130-41fe-8d5e-8c97a9e022a2)

# Use Case

Replacement Variables are used by Approval Templates to generate Approval records for Contracts and Sourcing Events.

To create a Replacement Variable that will be used in Approvals, set Used In Field to the value Approval Assigned To. The value in the List Value field will appear in the Assign To drop-down list in an Approval Template. Next, create a variable chain from the Approvals table to the appropriate field variable. For example, `$contact_id.requester_name` finds the name of the Requester in the linked Contract record, while `$contract_id.requester_id.manager_name` finds the Requester's manager.

> ⚠️ The Variable should be a variable chain that starts from the Approval record, not from the Approval Template!
> ⚠️ 
> ⚠️ The values "Task Assigned To" and "Other" do not link to any automation in the default setup, but they can be deployed and used with minor modifications to Task Templates or other template table.

To use a Replacement Variable in an Approval Template, you can create an Approval Template and set Assign Approval Based On to the value Person from Contract. Users can then select a value for the Assign To dropdown, which contains a link to all Replacement Variable records for which Used in Field is Approval Assigned To.