Skip to main content
Level 2
mai. 2, 2024 10:04 AM UTC
Respondido

Query for number of SMS and Direct mail messages sent

Hi all,

 

Can anyone please help me with the query for the number of SMS and Direct Mail messages sent for a month?

Este tópico foi fechado para respostas.
IvanMi1
IvanMi1Resposta
Adobe Employee
mai. 2, 2024 11:18 PM UTC

You can do this as a query as stated below, but more easily, couldn't you just use the built-in channel reports? With the added benefit of being able to export these reports. 

 

 

2 Respostas

Mohan_Dugganab
Adobe Employee
Adobe Employee
mai. 2, 2024 11:23 AM UTC

You can query it on the following lines 

SELECT DATE_FORMAT(timestamp, 'yyyy-MM') AS rolluptimestamp, SUM( CASE WHEN _experience.customerjourneymanagement.messagedeliveryfeedback.feedbackstatus = 'sent' THEN 1 ELSE 0 END) AS deliveredcount FROM cjm_message_feedback_event_dataset WHERE _experience.customerjourneymanagement.messageprofile.channel._id = 'https://ns.adobe.com/xdm/channels/sms' GROUP BY DATE_FORMAT(timestamp, 'yyyy-MM') ORDER BY rolluptimestamp desc; Alter the channel Id accordingly for direct mail as https://ns.adobe.com/xdm/channels/direct-mail

 Reference - https://experienceleague.adobe.com/en/docs/journey-optimizer/using/data-management/datasets/datasets-query-examples 

Traduzir
IvanMi1
Adobe Employee
IvanMi1Adobe EmployeeResposta
Adobe Employee
mai. 2, 2024 11:18 PM UTC

You can do this as a query as stated below, but more easily, couldn't you just use the built-in channel reports? With the added benefit of being able to export these reports. 

 

 

Traduzir