I am trying to create a script which will create a BIAR file automatically. However that should contain all the reports of a specific folder. I got this this working, but need it for reports in specific folders only.
I think in Query Builder nested queries wont work
So how do i get the list of all the reports from a specific folder ?
I have the following query but it needs some more stuff to get a list of all the reports of specific folder.
Select SI_ID, SI_NAME From CI_INFOOBJECTS Where SI_PROGID=‘CrystalEnterprise.Folder’
Hi agulland,
Thanks for your response, I tried the query which you provided but it did not me me any output, it just said 0 results.
Let me tell you the folder structure: Public Folders\Client Portal\Custom - Public Folders
- Client Portal - Custom
- Folder A (several reports in these folders)
- Folder B
- Folder ‘N’
Now what i want to achieve is I want to create a BIAR file which will back up all the contents for Custom Folder
Here is wht i tried:
SELECT * FROM CI_INFOOBJECTS
WHERE children(“SI_NAME=’ Public Folders\Client Portal’”, “SI_NAME = ‘Custom’”)
AND SI_PROGID=‘CrystalEnterprise.Folder’
Yes, I did try that but it gave me no records with a message:
Number of InfoObject(s) returned: 0
SELECT * FROM CI_INFOOBJECTS
WHERE children("SI_NAME='Public Folder\Client Portal'", "SI_NAME = 'Custom'")
AND SI_PROGID='CrystalEnterprise.Folder'
There are few more folders on Custom folder and want to back up only the custom folder with command line biar file. I got this automated but need this query to get the proper output.
I’m just struggling with the query part of it now !!