The Pigment Connector for Google Sheets allows you to push data from Google Sheets into Pigment. This article discusses the different configuration options, including how to install the connector and how to push data.
Check out the Google Sheets Integration Micro-learning series in the Pigment Academy!
Set up the Google Sheets configuration
First, you need to prepare a Google sheet that outlines the required configuration you need to push data into Pigment.
- In the Google Sheet sheet that contains the data you with to push, sign into the Pigment Connector.
- Click Push to Pigment in the Pigment sidebar.
- Click Create Sheet Configuration.
This opens new sheet named Pigment. The purpose of this sheet to specify precisely which data you wish to push to Pigment and its required configuration options. - Enter the following mandatory information:
Column Description Example Sheet Name of sheet containing your data. Lists Named Range Use either Named Range cell, or the Begin Range and End Range cells described below.
If you use the Named Range cell, see the
Google documentation for more information.country_list Begin Range Use either the Begin Range and End Range cells, or the Named Range cell described above. A1 End Range Use either the Begin Range and End Range cells, or the Named Range cell described above. C7 Show CSV Enter TRUE.
This allows the download of a CSV file containing the extracted data.TRUE
- Click Download export data as CSV.
A confirmation displays with a link to the downloaded CSV file.
Create the Import Configuration in Pigment
Next, use the downloaded CSV file to create an import configuration in Pigment. This ensures that data is accurately mapped when pushed from Google Sheets to Pigment.
- In Pigment, go to the Block where you want to push your Google Sheets data, and click Import Data.
- Do the following:
a. Upload the CSV file you just downloaded from Google Sheets.
b. Configure and map the CSV settings so that the CSV data matches the requirements in Pigment.Working with a pivoted file in Google Sheets? No problem! During this initial import, select Pivoted, and configure the appropriate mappings.
c. Click Import, and save the import configuration.The number and dates format must be en-GB.
- In the Block settings, go to Import configurations.
- In the menu (…), click Copy ID.
You need this ID to finish your Google Sheets setup.
Add the Import ID to the Google Sheet
The final part of the Google Sheet configuration is to add the Pigment import ID to the Pigment connector. This specifies how data is mapped and organized each time it is pushed from the Google Sheet to Pigment.
It’s important to note that this import ID is unique to this Google Sheet. If you try to use other import IDs in this process, this will likely result in failed imports.
- In the Google Sheet sheet that contains the data you with to push, open the sheet called Pigment.
- Enter the following information:
Column Description Example Import ID Paste the import ID with your import in Pigment.
This is mandatory for Google Sheets to correct push data to Pigment.c5f852f7-5981-42c3-841s-6a4ab996cbee - (Optional) The following information can also be included in the Pigment sheet:
Column Description Example Description Name for your export type. Country List Header Row Row number including the headers if not included in the range selected. 11 Debug Return detailed information about a specific row. TRUE Dimension: x If you need to add a Dimension modality that is not included in the range selected:
• Replace x in the column name with the exact name of the Dimension
• In the field, enter the specific item from within that DimensionColumn Header would be
Dimension: Scenario
The cell’s data would be
Actuals.
Push Google Sheet data to Pigment
When the setup is complete:
- Click Export data to Pigment to push data from your Google Sheet to Pigment.
- Click View export data as CSV to view the values that were pushed from your Google Sheet to Pigment.