Start building

APIs and SaaS

Typed CSV → Salesforce account upserts

Validate the complete customer CSV before any write. Call a reusable subprocess per record and bind its Salesforce activity to the exact crm_salesforce connection. Simulation never calls Salesforce.

  • CSV → Salesforce
  • Intermediate
  • 6 min

Last verified 2026-10-31 at f4ce7d0 — simulation fixtures

Try this template in Studio

Studio activation is a one-time payment of USD 20.

Flow

Drawn at build time from the node positions in the template's process definitions. Numbered markers are the walkthrough stages.

Main processTyped CSV → Salesforce account upserts4 activities

Scroll sideways to see the whole flow.

Flow diagram of Typed CSV → Salesforce account upserts4 activities and 3 transitions: Start, Parse CSV types, quoted cells and dates, Upsert each typed customer in a subprocess, Return result.StartstartParse CSV types,quoted cells and datesformat.parse1Upsert each typedcustomer in a…foreach2Return resultend
List the 4 activities and 3 transitions

Activities

  1. Start start
  2. Parse CSV types, quoted cells and dates format.parse
  3. Upsert each typed customer in a subprocess foreach
  4. Return result end

Transitions

  • Start → Parse CSV types, quoted cells and dates (on success)
  • Parse CSV types, quoted cells and dates → Upsert each typed customer in a subprocess (on success)
  • Upsert each typed customer in a subprocess → Return result (on success)
SubprocessNormalize and upsert one Salesforce account4 activities

Scroll sideways to see the whole flow.

Flow diagram of Normalize and upsert one Salesforce account4 activities and 3 transitions: Start, Normalize name and ID, Upsert using unique external ID, Return result.StartstartNormalize name and IDdata.mapperUpsert using uniqueexternal IDsalesforce.upsertReturn resultend
List the 4 activities and 3 transitions

Activities

  1. Start start
  2. Normalize name and ID data.mapper
  3. Upsert using unique external ID salesforce.upsert
  4. Return result end

Transitions

  • Start → Normalize name and ID (on success)
  • Normalize name and ID → Upsert using unique external ID (on success)
  • Upsert using unique external ID → Return result (on success)

Walkthrough

  1. Parse CSV types, quoted cells and datesParse CSV types, quoted cells and dates
  2. Upsert each typed customer in a subprocessUpsert each typed customer in a subprocess

What you will practise

  • Inspect each field position, data type and required rule.
  • Run with known sample input and inspect expected versus actual results.
  • Add an independent editable copy without activating live external connections.

Sample cases

2 cases with 7 assertions, run with python -m server.integration examples --all in simulation.

Quoted separators and multiline names preserved

Passed

Run the actual format and mapping engine; external operations use explicit simulation fixtures.

Expected result Quoted separators and multiline names preserved — every expected result is checked.

4/4 assertions

  • Process succeeded
  • First name normalized without splitting quoted cell
  • Second external ID
  • Upsert fixture accepted

This sample run only; not a production certification.

Invalid credit prevents all account writes

Expected failure verified

Run the actual format and mapping engine; external operations use explicit simulation fixtures.

Expected result Invalid credit prevents all account writes — every expected result is checked.

3/3 assertions

  • Process failed
  • Validation failure
  • Subprocess loop not invoked

This sample run only; not a production certification.

Prerequisites

Runtime
Cohuno runtime 1.27.0, the version recorded when these cases last passed.
Starter
Manual start; no listener.
Optional dependencies
None beyond the base runtime.
Simulation fixtures
  • crm_salesforce salesforce · salesforce.upsert
Every sample run replaces these connections with the fixtures defined in its case. A live run needs an operator to configure an authorized connection for each.
Verification details

Provenance

What was verified, and when. The content part changes whenever the pack, a process in its closure, the runtime version or a case result changes; the gallery check then fails until the gallery is regenerated and the changed templates are verified again.

Verified content

Pack SHA-256
8c930e3a71ef54bd76107858eb3af4af81a2108f604f4d9b31721a393f7fab5c
Closure SHA-256
bbe741bc977d65bfa8b2a6d9bca4ccf5d82f3bef5e5c9b0f73bb4fddf7f3c907
Runtime
1.27.0
Results
2/2 cases, 7/7 assertions, mode simulate, external calls: none.
Files in the closure
  • server/integration/example_packs/csv_salesforce_onboarding.json
  • server/integration/templates/csv_salesforce_onboarding.json
  • server/integration/templates/salesforce_customer_child.json

Verification event

Commit
f4ce7d08eedc90267b405ed1974344153a8b3a34
Verified at (UTC)
2026-10-31T21:19:21Z

How the Cohuno team reproduces this check

PYTHONPATH=. python -m server.integration examples --example csv_salesforce_onboarding
PYTHONPATH=. python scripts/export_public_gallery.py --check