Import community invoices to Salesforce

Recipe ToolsCRMMarketingDeveloper ToolAPI Integration

What it does

When a function call runs, this automation fetches invoice data via HTTP and searches Salesforce for matching accounts and products. It creates invoice records in Salesforce by looping through each page of results.

Who it's for

Accounting teams who need to sync community invoices into Salesforce without manual entry.

How teams use this

Sync community invoices to Salesforce

Import invoices from the community platform into Salesforce automatically so the finance team has a single source of truth for all customer transactions.

Route invoices by customer segment

Filter invoices during the search step to only import those from specific customer segments, so different teams see only relevant records.

Map community products to Salesforce SKUs

Add a lookup table step to match community product names to Salesforce product codes before creating invoice line items so products sync correctly.

How it works

  1. Receive the function call. A function call starts this automation to import invoices from the community platform into Salesforce.
  2. Fetch the invoice list via HTTP. Retrieve invoice data from the community platform via HTTP, paginating through results to get all invoices for processing.
  3. Search for matching accounts. Query Salesforce to find the account records that correspond to each invoice's customer so invoices link to the right accounts.
  4. Search for matching products. Query Salesforce to find the product records that match the items on each invoice using the lookup table for product codes.
  5. Create invoice records. Create invoice records in Salesforce linked to the matched accounts and products for each page of results from the HTTP fetch.