Jump to content

Report on first and last email update on requests


chriscorcoran

Recommended Posts

@Victor thanks, I'm getting a SQL error but the syntax looks correct 

2531912019-02-06 10:47:28infogeneral8368Invocations (7f47861a-3c9c-4b36-b019-6e54b63e83ad): system/getLogFileRecords

2531902019-02-06 10:47:28errorperf2300

( SELECT sub_b.h_id FROM h_buz_activities sub_b LEFT JOIN h_msg_messages m ON m.h_msg_id = JSON_VALUE(sub_b.h_extra, '$._emailId') WHERE sub_b.h_target = s.h_id AND sub_b.h_type = 'Email' AND m.h_msg_to = 'support@resonate.tech' ORDER BY m.h_msg_date > '2018-01-01 00:00:00' )

 

Link to comment
Share on other sites

  Hi @chriscorcoran,

As @Victor has mentioned, this will only return timeline updates against requests where the email was sent/received after that date/time stamp. Not sure how useful that would be though? Are you actually after requests that have been logged after that date/time stamp? If so then a filter configured as below, using the Start Of Last Year variable in the value, would work:

image.png

Cheers,

Steve

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...