Skip to content

Commit

Permalink
feat(SFT-1593): salesforce lead duplicate update skip empty values
Browse files Browse the repository at this point in the history
  • Loading branch information
kjmartens committed Nov 22, 2024
1 parent 7190bbf commit 58a7147
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,9 @@ private function processLeads(Form $form, Client $client): void
];

if ($leadId) {
// Remove empty values
$requestConfiguration['json'] = array_filter($requestConfiguration['json']);

[$response] = $this->getJsonResponse(
$client->patch(
$this->getEndpoint('/sobjects/Lead/'.$leadId),
Expand Down

0 comments on commit 58a7147

Please sign in to comment.