How to identify scheduled reports using Query Builder

Hello,

I have hundreds of reports among them I need to identify which one are scheduled ones

I pulled out SI_INSTANCE of two reports - one scheduled and another unscheduled , for both SI_INSTANCE value is coming as ‘False’ , I am confused :roll_eyes: how to differentiate between two reports

I want to do this through Query Builder, is there way to identify?


bob2210 (BOB member since 2010-09-23)

Hi,
yes because the field SI_INSTANCE reffers if the object is an instance or not.
the report itself is not.

for reports ther is a SI_children and si_haschildren to know if there migh be some childern/instances but you cant know which.

this query should you return the scheduled instances:
select * from CI_INFOOBJECTS where SI_RECURRING=1 and SI_SCHEDULE_STATUS=9

you should query the instances and get know what are the parrents… but I never know if the query builder is able to process more complex queries - I always used a Java SDK to know more…

BR Tomas


tom_kar :czech_republic: (BOB member since 2015-06-30)

I find the best query to run in QueryBuilder is:
SELECT
SI_NAME, SI_SCHEDULEINFO.SI_SUBMITTER,
SI_PARENTID, SI_KIND, SI_NEXTRUNTIME,
SI_PROCESSINFO.SI_DBNEEDLOGON,
SI_PROCESSINFO.SI_LOGON_INFO,
SI_PROCESSINFO.SI_PROMPTS,
SI_PROCESSINFO.SI_RECORD_FORMULA,
SI_FORMAT_INFO, SI_DEPENDENCIES,
SI_SCHEDULEINFO.SI_DESTINATION
FROM
CI_INFOOBJECTS
WHERE
SI_RECURRING = 1

add the following if you only want instances scheduled to email addresses:
and “si_scheduleinfo.si_destinations.1.si_progid” = ‘CrystalEnterprise.Smtp’


tweety2000 (BOB member since 2018-11-02)