Creating a Static Mapping for the PSA Resource API
When setting up subscriptions to create PSA resources via the REST API, you can map the Static key to any field that requires a constant value. This enables you to automatically enter additional information for each resource, saving time on data entry.
You can use a data transformation table (DTT) in Foundations to specify the target value you want to enter for a particular mapping from the Static key.
To do this:
- Create a DTT in Foundations.
- In the Source Value 1 field, enter the value for the Static key: TRUE
- In the Target Value field, enter the value you want PSA to enter automatically.
For more information, see Data Transformation Tables and Creating a Data Transformation Table.
On the relevant PSA Resource API relationship, do the following:
- Create a mapping between the Static key and the target field.
- Specify the data transformation table you want to use.
If required, you can map the Static key to more than one field as long as you link each mapping to a unique DTT.
The following table displays some examples of how you can use the Static key to enter constant values.
Aim |
Key |
Source Value 1 |
Target Field
|
Target Value |
---|---|---|---|---|
Create all API resource records using a particular record type on Contact object (Resource). | Static | TRUE | Record Type ID |
Resource |
Include a static description for all API resource records. | Static | TRUE | Contact Description | Created via PSA API |
Include a static account name on all API resource records. | Static | TRUE | Account Name | Merlin Technologies |
For more information about Foundations mappings, see Adding Mappings to a Messaging Relationship.