franks hub / projects / budget-coad

Overview

Marketing budgets for reseller partners are planned in a spreadsheet: which partner gets how much, for which activity, in which quarter. To book them, every approved activity has to reach Salesforce as a COAD record — and the import is unforgiving about formats, codes and totals.

This tool sits in between. It reads the plan, checks every line against the partner’s remaining budget and the booking rules, and writes only the clean lines into a ready-to-import COAD file. Everything that would bounce in Salesforce is flagged before the upload, not after.

Budget planExcel, one line per partner activity
Checksbudget, partner ID, cost centre, dates
COAD fileCSV in the Salesforce import layout
Salesforceimported with the Data Import Wizard
Work project Salesforce Excel HTML + JavaScript Demo with invented data

How it works

  1. Load the budget plan

    The quarterly plan is dropped in as an Excel file. Partner budgets and planned activities are read from their own sheets.

  2. Match partners

    Every partner name is mapped to its Salesforce account ID. Unknown names are not guessed — they are flagged.

  3. Check every line

    Is there enough budget left for this partner? Is a cost centre set? Do the dates fall inside the quarter? Is the amount positive and in euros?

  4. Write the COAD file

    Valid lines get a running COAD ID and are written in the import layout — semicolon-separated, UTF-8, ISO dates, dot as decimal separator.

  5. Import and file the log

    The file goes into Salesforce; a short log lists what was exported, what was held back and why.

Demo

All data on this page is invented. Partners, amounts, IDs and cost centres are made up for the demo and have nothing to do with real budgets.

Q4 2026 · partner budgets

Partner budgets–
Planned–
Ready for export–
Held back–
PartnerActivityCategoryPeriodAmountCheck

COAD file preview

Press “Generate COAD file” to build the import file from all lines marked OK.

File format

Simplified for this page — the real layout follows the field list of the Salesforce org.

ColumnContentExample
COAD_IDRunning number per quarterCOAD-26Q4-0001
Account_IDSalesforce account of the partner001DEMO00000A1
ActivityShort description of the measureNewsletter feature
CategoryOnline, Print, Event or POSOnline
Start_Date / End_DateISO dates inside the quarter2026-10-01
Amount_EURNet amount, dot as decimal separator4500.00
Cost_CenterBooking cost centreCC-4711
StatusAlways Approved on exportApproved

Status

Done

  • Budget plan read from Excel
  • Budget, cost-centre and date checks
  • COAD file in the import layout
  • Log of exported and held-back lines

Open

  • Partner list kept in one place instead of per quarter
  • Warning when a partner passes 90 % of the budget
  • Compare actual invoices against the booked COADs
  • The working version with real budgets stays inside the company and is not published here.