diff --git a/EventListener/TokenSubscriber.php b/EventListener/TokenSubscriber.php index 0751c321c..0cd4d62b3 100644 --- a/EventListener/TokenSubscriber.php +++ b/EventListener/TokenSubscriber.php @@ -350,7 +350,7 @@ public function onTokenReplacement(TokenReplacementEvent $event): void $isCustomObject = false; foreach ($data['filters'] as $filter) { - $customFieldValues = $this->getCustomFieldDataForLead($filter['filters'], (int) $lead['id']); + $customFieldValues = $this->getCustomFieldDataForLead($filter['filters'], (string) $lead['id']); foreach ($customFieldValues as $field => $values) { foreach ($values as $value) {