batchUpsert updates selection differently

Pardot

Last updated 5 days ago ·Reference W-5947925 ·Reported By 1 users

Fixed

Summary
When calling batchUpsert using API and with only an email address present as a field value, the record is always inserted instead of updated when "prospect_id" or "crm_fid" is not present in the fields. An Upsert will result in an update, so batchUpsert should behave similarly.

Repro
1) Call prospect/version/4/do/batchUpsert with "email" value and other field values -- Do not include "prospect_id" -- This results in an insert.
2) Do the same as above but with an Upsert instead of batchUpsert -- This will result in an update.
3) Do step 1 but include "prospect_id" or "crm_fid" and "email"
This will result in an update.

Workaround
Include "id" or "crm_id" where applicable. Otherwise, N/A.

Reported By (1)

Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.