diff --git a/src/cdk/v2/destinations/clicksend/procWorkflow.yaml b/src/cdk/v2/destinations/clicksend/procWorkflow.yaml index 0833bba198..f1680853b7 100644 --- a/src/cdk/v2/destinations/clicksend/procWorkflow.yaml +++ b/src/cdk/v2/destinations/clicksend/procWorkflow.yaml @@ -59,7 +59,7 @@ steps: list_id : parseInt($.getDestinationExternalID(^.message,'CLICKSEND_CONTACT_LIST_ID'), 10), name : String(.properties.name), body : String(.properties.body), - from : $.getDestinationExternalID(^.message,'CLICKSEND_SENDER_EMAIL') || ^.destination.Config.defaultSenderEmail, + from : $.getDestinationExternalID(^.message,'CLICKSEND_SENDER_ID') || ^.destination.Config.defaultSenderId, schedule : $.deduceSchedule(.properties.schedule,{{{{$.getGenericPaths("timestamp")}}}}, ^.destination.Config) }); $.assert(!Number.isNaN(sendCampaignPayload.list_id), "list_id must be an integer"); @@ -71,7 +71,7 @@ steps: name: sendSmsPayload template: | const sendSmsPayload = .message.({ - from: $.getDestinationExternalID(^.message,'CLICKSEND_SENDER_EMAIL') || ^.destination.Config.defaultSenderEmail, + from: $.getDestinationExternalID(^.message,'CLICKSEND_SENDER_ID') || ^.destination.Config.defaultSenderId, email: {{{{$.getGenericPaths("emailOnly")}}}}, to: {{{{$.getGenericPaths("phone")}}}}, body: .properties.body, diff --git a/test/integrations/destinations/clicksend/commonConfig.ts b/test/integrations/destinations/clicksend/commonConfig.ts index 04c51736f0..815973b8d9 100644 --- a/test/integrations/destinations/clicksend/commonConfig.ts +++ b/test/integrations/destinations/clicksend/commonConfig.ts @@ -12,7 +12,7 @@ export const destination = { defaultCampaignScheduleUnit: 'day', defaultCampaignSchedule: '2', defaultSource: 'php', - defaultSenderEmail: 'abc@gmail.com', + defaultSenderId: 'abc@gmail.com', defaultSenderPhoneNumber: '+919XXXXXXXX8', oneTrustCookieCategories: [ { diff --git a/test/integrations/destinations/clicksend/router/data.ts b/test/integrations/destinations/clicksend/router/data.ts index b8b6c49b90..3aa3c0abc4 100644 --- a/test/integrations/destinations/clicksend/router/data.ts +++ b/test/integrations/destinations/clicksend/router/data.ts @@ -15,7 +15,7 @@ const commonDestination = { clicksendUsername: 'dummy', defaultCampaignSchedule: '2', defaultCampaignScheduleUnit: 'day', - defaultSenderEmail: 'abc@gmail.com', + defaultSenderId: 'abc@gmail.com', defaultSenderPhoneNumber: '+919XXXXXXXX8', defaultSource: 'php', oneTrustCookieCategories: [