A second delivery of one form submission and a customer sending a second enquiry are different events. Use a stable submission identifier to recognize retries and keep contact matching separate.
Assign one ID when the request is accepted
Create or preserve an identifier for the original submission and pass it through the queue to the CRM. Reuse it when the same request is retried. A genuinely new submission gets a new identifier even when the email address matches.
Protect the write from parallel deliveries
If two workers can process the same event, use a database uniqueness rule or the destination’s supported idempotency mechanism. A check followed by an unprotected insert can still race. Test simultaneous deliveries in a safe environment.
Handle uncertain responses
If the CRM times out, verify whether the record already exists before sending again. Use the submission ID to trace that record. If the system cannot establish the outcome, send it to a review queue instead of repeatedly creating new entries.
Test retries and distinct enquiries
Run a timeout after an accepted write, two simultaneous deliveries and two different requests from the same buyer. The first two cases should each leave a single record. The final case should preserve both requests for follow-up.
Write expected outcomes before a load test
For two workers handling submission A, expect one record for A. For a failed response after the destination accepted A, check that the next attempt finds the same record. For a fresh submission B from the same email address, expect its own enquiry with the original message intact.
The CRM automation guide covers follow-up after the record exists. Our custom software development can help design the handoff between forms, queues and the CRM.
