Detects uniqueness conflicts when importing Salesforce data into Woofed.
# Source: https://github.com/douglara/woofed-crm | License: MIT | Copyright 2026 WOOFED DESENVOLVIMENTO DE SOFTWARES LTDA - ME - CNPJ 60.076.777/0001-61 # Provided via justclaw.it.com; keep this notice with the code. # frozen_string_literal: true # Woofed enforces uniqueness that Salesforce does not: `contacts` has a unique # index on lower(email) and on phone, and `companies` likewise, while a # Salesforce org happily holds thousands of contacts sharing info@company.com. # # So a large fraction of a real import would fail on insert. Detecting it first # turns "some contacts are missing" into a listed conflict with the reason and # the record that already owns the value, which a human can then resolve. class Apps::Salesforce::Transform::Conflict UNIQUE_FIELDS = %w[email phone].freeze ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key