Let’s face it: interpreting complex data in spreadsheets can be a chore. But what if your Excel file could automatically fetch data from a Tacton CPQ instance, understand it, and visually present it in a color-coded format? That’s precisely what we achieved with a smart integration of Excel, Power Automate, and the Tacton CPQ CSS API. This seamless automation turns raw configuration data into an intuitive, visually appealing spreadsheet.
The objective was simple but transformative: automate the coloring of cells in Excel based on real-time data fetched from Tacton CPQ. Using the Tacton CPQ CSS API as the data source, the project automated the visualization of configuration states directly in Excel.
Here’s how we did it.
The backbone of this solution is a Power Automate flow. Acting as the intermediary, Power Automate initiates a POST request to the Tacton CPQ CSS API. This setup required:
Defining Power Automate endpoint details:
A unique URL for Excel's Office Script to call.
Configuring the request payload:
The payload included:
baseUrl
: Tacton CPQ instance URL.ticketId
: Session/transaction identifier.catalog
, productId
, externalId
: To ensure the returned data was highly relevant.apiVersion
: Indicating the specific Tacton API version.The flow was designed to handle authentication securely while maintaining flexibility for different API endpoints and datasets.
The Office Script handled the API call using Excel’s integration with JavaScript. Key tasks here included:
From the JSON response, we focused on two key elements:
name
: Unique identifiers for configuration items.state
: Indicators of the current state (e.g., green, orange, red).The script used this data to construct a dictionary (stateColorMap
) that linked each item name to its corresponding state.
Next, we associated states with Excel-compatible color codes:
These mappings ensured that users could instantly interpret the status of items without diving into details.
The script scanned Column A of the active Excel sheet, looking for matches with the name
elements retrieved from the API. For each match:
This created a real-time, dynamic link between Excel and Tacton CPQ.
Finally, Excel’s formatting APIs were used to apply the appropriate background color dynamically. Users could immediately visualize the data in an intuitive way.
While the project delivered impressive results, it wasn’t without hurdles:
This integration isn't just a cool demonstration of automation—it's a practical tool for businesses using Tacton CPQ. Here’s why it stands out:
The final solution marries the power of Tacton CPQ with Excel's widespread familiarity, making it easy to bring API-driven data to life.
This workflow doesn’t just eliminate manual steps; it sets a new standard for how businesses can integrate CPQ systems with everyday tools like Excel.
Are you ready to unlock the power of seamless integrations like this? Let our experts at cpq.se help you connect the dots between Tacton CPQ, Power Automate, and other business-critical tools.
Book a virtual coffee with Magnus Fasth or Patrik Skjelfoss today to discuss your automation goals: Meet CPQ.se.
Or why don't sign up for our online Power Automate Training, specifically targeted to Tacton CPQ? What's outlined above might be an upcoming chapter...