Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Show logs in integration log table for last 8 hours weekdays

raman_kumar
Tera Contributor

I have created a report in which one of my requirement is such that only last 8 hours integration logs should be filtered for weekdays in integration logs.

I have checked other ways without scripting but not found any filter for this scenario can anyone guide me if there's any filter condition/way/steps available which we can use to achieve this.

 

 

 

Thank you

3 REPLIES 3

Tanushree Maiti
Kilo Patron

Hi @raman_kumar 

 

First tell me in which table you are doing reporting. Is this requirement for Inbound or Outbound.

Did you consider to check sys_outbound_http_log  //This is for Outbound

Here you can Do filtering by Created field . ( Created relative 8 days ago)

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

Hi @Tanushree

 

I am doing on sn_ind_tmt_orm_u_integration_logs table and this requirement is for Outbound for sending email notification.

Yes i checked u_integration_logs but here's no default filter available for last 8 hours integration logs,

Can you pls mention steps to approach further.

 

jcmings
ServiceNow Employee

Can you do something like this:

jcmings_0-1777585641310.png

 

Encoded query: 

sys_created_onRELATIVEGT@hour@ago@8^sys_created_onDATEPARTMonday@javascript:gs.datePart('dayofweek','monday','GE')^sys_created_onDATEPARTFriday@javascript:gs.datePart('dayofweek','friday','LE')