Introduction
This guide provides instructions for successfully implementing the Persefoni Fetch Transactions Chain Template. It covers the key items that will be required to successfully implement, including importing Wdata objects, enabling the Chain template, connecting objects, and testing the process. Following this guide will help ensure a smooth and efficient implementation process.
Prerequisites
Chains
- The following connectors must be enabled and configured in your workspace:
- The following Workspace variables must be created within your workspace:
- wsv_ResourceGroupId
- wsv_LanguageId
- wsv_WdataLoadWarningThreshold
Tables and Queries
- The following file will need to be downloaded locally for import later in the process:
Note: There are packages or files that need to be imported/enabled to complete the setup.
Deploy the Chain
The Persefoni | Fetch Transactions Chain Template is located in the Workiva Chains section of the Templates screen.
Here's how to find it:
- In Chain Builder, go to the Templates tab
- Select Workiva Chains from the menu at the top
- Search for Persefoni | Fetch Transactions Chain Template at the top right and open the template
After locating your template, configure it for your workspace using the variables and runtime inputs listed below.
Note: For detailed instructions on creating a chain from a template, see the Create and manage chains article.
Variables
Variable type | Variable name | Description |
Chain | cv_EmissionsTableId | Enter the ID of the table to import Emissions data into. |
Chain | cv_ActivitiesTableId | Enter the ID of the table to import Activities data into. |
Chain | cv_FacilitiesTableId | Enter the ID of the table to import Facilities data into. |
Workspace | wsv_ResourceGroupId | Enter the ID of the Persefoni resource group to download transactions from. |
Workspace | wsv_LanguageId | Enter the ID of the language to download from Persefoni. |
Workspace | wsv_WdataLoadWarningThreshold | Enter 250.Note: The chains created from the template use this threshold to help prevent timeouts when importing large datasets. |
Build your Data Model
The data model is included in the support article as a Wdata file (.cb file), ensure this has been downloaded locally before continuing with this step.
Here’s how to import the Wdata File:
- Go to Wdata Home.
- At the top left, click Create > Import > Import Workiva File.
- Click Browse to open your computer's file viewer and select the .cb file downloaded.
- Choose an upload location in your workspace, add a prefix if desired, and click Import to finish.
Note: For detailed instructions on importing a Wdata object, see the Import of Export Wdata Objects Between Workspaces article
The contents of the .cb file include:
Object Type | Object Name | Description |
Fact Table | Activity | Table to ingest Persefoni Activity data |
Fact Table | Emission | Table to ingest Persefoni Emission data |
Fact Table | Facilities | Table to ingest Persefoni Facilities data |
Dimension Table | Footprint Categories | Mapping table to align Emissions data to Footprint Categories |
Query | Facilities | A query to display all Facilities data within Facilities table |
Query | Emissions | A query to display all Emissions data within Emissions table within a date range |
Query | Activity | A query to display all Activity data within Activity table within a date range |
Query | Emissions by Scope | Emission (Table), Scope |
Query | Emissions by Emissions Source - Scope 3 | Emission (Table), Footprint Categories (Table), EmissionCategory |
Query | Emissions by Calculation Method - Scope 2 | Emission (Table), CalculationMethod |
Global Parameter | Start_Date | Parameter aligned to date fields from the Persefoni Tables |
Global Parameter | End_Date | Parameter aligned to date fields from the Persefoni Tables |
Global Parameter | Scope | Parameter aligned to GHG Scope, can be 1, 2, or 3 |
Global Parameter | EmissionCategory | Parameter aligned to Emissions table for Footprint categories |
Global Parameter | CalculationMethod | Parameter aligned to Emissions table for Calculation Method |
Setting up the Template
Once the Prerequisites and Importing Resources steps have been completed, the sample data will need to be imported, and the Chains and Wdata objects will need to be connected.
Here’s how to import the sample data for each of the tables:
- Go to Wdata Home
- Select the Table data will be imported into
- At the top right corner of the table, click on “Add Dataset” dropdown > Select Add File > Click Upload File
- Click Browse > Select the equivalent Persefoni Data file for the Table
- Click Add Data
Note: For detailed instructions on importing a file into a table, see the Manage Table Datasets article
Associating Tables
To effectively run the chain process as well as to start seeing results, the associated Persefoni will need to align with their respective variables within Chains.
Here’s how to input the Table Ids to their respective Chain Variables in the “Persefoni | Fetch Transactions" Chain
- Navigate to your enabled “Persefoni | Fetch Transactions Chain” chain.
- Click on Chain Settings.
- Update the respective Table Ids for the Persefoni Transactions data
- Make sure to align each with the appropriate Table that was imported from the .cb file.
Importing & Connecting
After the table data has been imported and the table ids have been input into the chain variables, the Persefoni - Workiva Template can be validated.
Here’s how to test the validity of your template setup:
- Navigate to the “Persefoni | Fetch Transactions Chain”, click on the vertical ellipsis and select “Execute”
- Click “Run with Inputs”
- From the Input selection select all the Transaction Types to run the validity test for (Emissions, Activity, Facilities) and click start
- Review the chain execution, once it has completed and a successful status is displayed, navigate to the corresponding tables selected for the run.
- Navigate to one of the queries that the table is utilized in within Wdata.
- Run the Query with associate parameters
- Verify the dataset
- After validating the data, connect the queries to the respective spreadsheets for implementation. To connect a query to a spreadsheet, follow these steps