diff --git a/src/cdk/v2/destinations/intercom/procWorkflow.yaml b/src/cdk/v2/destinations/intercom/procWorkflow.yaml index 10b3396759..8ef1cc9d9b 100644 --- a/src/cdk/v2/destinations/intercom/procWorkflow.yaml +++ b/src/cdk/v2/destinations/intercom/procWorkflow.yaml @@ -37,7 +37,7 @@ steps: - name: apiVersion template: | - const version = $.isDefinedAndNotNull(.destination.Config.apiVersion) ? .destination.Config.apiVersion : "1.4"; + const version = $.isDefinedAndNotNull(.destination.Config.apiVersion) ? .destination.Config.apiVersion : "latest"; version; - name: rEtlPayload diff --git a/test/integrations/destinations/intercom/processor/data.ts b/test/integrations/destinations/intercom/processor/data.ts index ed78e273c6..1dc89a1a61 100644 --- a/test/integrations/destinations/intercom/processor/data.ts +++ b/test/integrations/destinations/intercom/processor/data.ts @@ -3485,6 +3485,7 @@ export const data = [ }, Config: { apiKey: 'abcd=', + apiVersion: '1.4', appId: 'asdasdasd', collectContext: false, }, @@ -3631,6 +3632,7 @@ export const data = [ Config: { apiKey: 'abcd=', appId: 'asdasdasd', + apiVersion: '1.4', collectContext: false, sendAnonymousId: true, },