---
title: How do you Sync Cost Codes with Foundation?
description: Learn how to sync cost codes from Foundation into SmartBarrel, including how phase-based cost codes are formatted and how to set up automatic syncing.
---

[Skip to content](https://ask.smartbarrel.io/how-do-you-sync-cost-codes-with-foundation#main-content)

English

Show submenu for translations

[Customer portal](https://ask.smartbarrel.io/ticketsview?hsLang=en)

![smartbarrel-logo-1.png\]](https://ask.smartbarrel.io/hs-fs/hubfs/smartbarrel-logo-1.png?height=39&name=smartbarrel-logo-1.png)

- Home
- Products
- Pricing
- Blog
- Company

Open main navigation

Close main navigation

- Home
- Products
- Pricing
- Blog
- Company
- English
  
  Show submenu for translations
- [Customer portal](https://ask.smartbarrel.io/ticketsview)
- Go to Dashboard

 Go to Dashboard

 Search the SmartBarrel Knowledge Base

- There are no suggestions because the search field is empty.

1. [SmartBarrel Knowledge Base](https://ask.smartbarrel.io/?hsLang=en)
2. [Integrations](https://ask.smartbarrel.io/integrations?hsLang=en)
3. [Foundation](https://ask.smartbarrel.io/integrations?hsLang=en#foundation)

# How do you Sync Cost Codes with Foundation?

## Learn how to import and manage cost codes from Foundation into SmartBarrel using the Foundation integration.

### **Cost Code Sync**

The Foundation integration allows you to import cost codes from Foundation into a SmartBarrel project, making them available for timecard tracking. Cost codes are required before timesheets can be exported back to Foundation.

Cost codes are imported in the following format:

- **Without Phases:** `CostCode` (e.g., `100`)
- **With Phases:** `Phase.CostCode` (e.g., `01.100`)

If your project uses sub-jobs, make sure your Sub-job Mapping is completed before running a Cost Code Sync. See the Sub-job Mapping article for more details.

![](https://ask.smartbarrel.io/hs-fs/hubfs/image-png-May-14-2026-11-56-56-9653-PM.png?width=2075&height=2072&name=image-png-May-14-2026-11-56-56-9653-PM.png)

### **Triggering a Cost Code Sync**

Navigate to **Integrations \> Foundation** and open the project you want to sync. Click **Sync Cost Codes** on the Foundation integration card. The synced cost codes will appear in the project's Cost Codes list.

### **Auto Sync Cost Codes**

Enable **Auto Sync Cost Codes** in Project Settings to have cost codes sync from Foundation automatically on a recurring schedule, keeping the project's cost code list up to date without manual intervention.

### **Cost Class Filter**

If your Foundation setup uses cost classes, you can restrict which cost codes are imported by setting a **Cost Class Filter** in Project Settings. Only cost codes belonging to the specified class will be imported. If no filter is set, all active cost codes for the job are imported.

### **Viewing Synced Cost Codes**

Navigate to **Projects \> \[Project Name\] \> Cost Codes**. Each cost code displays its code and description. Only the code and description are imported from Foundation — budget and quantity fields are not pulled.

### **Cost Code Sync Log**

Navigate to **Integrations \> Foundation \> Logs**. Cost Code Sync entries appear in the log table with the Action listed as **Cost Code Sync**. Click **Download** to export the detailed log.

- [SmartBarrel Dashboard](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#main-content)

    - [Worker Profile Management](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#worker-profile-management)
    - [Project Settings](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#project-settings)
    - [Timesheet Management](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#timesheet-management)
    - [Productivity](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#productivity)
    - [Worker Vs User](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#worker-vs-user)
    - [Crew Management](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#crew-management)
    - [Reports](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#reports)
    - [Company Settings](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#company-settings)
    - [Security](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#security)
    - [PunchFlow and SMS Messages](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#punchflow-and-sms-messages)
    - [Microsoft SSO](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#microsoft-sso)
- [Device and Solar](https://ask.smartbarrel.io/device-and-solar?hsLang=en)
- [Mobile App](https://ask.smartbarrel.io/mobile-app?hsLang=en#main-content)

    - [Manage the Apps Settings](https://ask.smartbarrel.io/mobile-app?hsLang=en#manage-the-apps-settings)
    - [Using the App](https://ask.smartbarrel.io/mobile-app?hsLang=en#using-the-app)
- [Integrations](https://ask.smartbarrel.io/integrations?hsLang=en#main-content)

    - [Procore Integration](https://ask.smartbarrel.io/integrations?hsLang=en#procore-integration)
    - [CMiC Integration](https://ask.smartbarrel.io/integrations?hsLang=en#cmic-integration)
    - [API](https://ask.smartbarrel.io/integrations?hsLang=en#api)
    - [Viewpoint Vista (App Xchange)](https://ask.smartbarrel.io/integrations?hsLang=en#viewpoint-vista-app-xchange)
    - [Plexxis](https://ask.smartbarrel.io/integrations?hsLang=en#plexxis)
    - [Foundation](https://ask.smartbarrel.io/integrations?hsLang=en#foundation)
    - [BuildOps](https://ask.smartbarrel.io/integrations?hsLang=en#buildops)
    - [Spectrum](https://ask.smartbarrel.io/integrations?hsLang=en#spectrum)
- [Feature Highlights](https://ask.smartbarrel.io/feature-highlights?hsLang=en)

- Home
- Products
- Pricing
- Blog
- Company

[![Chill listening crop-3](https://ask.smartbarrel.io/hs-fs/hubfs/SMARTBARREL-Logo-png-1.png?width=42&height=24&name=SMARTBARREL-Logo-png-1.png "Chill listening crop-3")](https://smartbarrel.io)

Copyright © 2026, SmartBarrel