BusinessObjects Board

Clean personal folders for only specific groups BI 4.2

Dear,

I want to clean up some reports on personal folders only for specific BI 4.2 groups with the “cleaning” application. But unfortunately, I can not delete reports for only users of a BI group with the Cleanup tool:

This tool cleans user documents that are older than a period of time. Delete the Personal / Inbox documents from all users at one time.

delete.jsp

String collectInbox(IInfoStore iStore, String cd, String dt) throws SDKException
{

String query = "SELECT SI_ID, SI_NAME, SI_DESCRIPTION " +"FROM CI_INFOOBJECTS " + “WHERE SI_KIND =” + “’” + dt + “’” +“ORDER BY SI_NAME”;

IInfoObjects oInfoObjects = iStore.query(query);

for (int x = 0; x < oInfoObjects.size(); x++)
{
IInfoObject oInfoObjectInbox = (IInfoObject)oInfoObjects.get(x);
int id1 = oInfoObjectInbox.getID();
String id =Integer.toString(id1);
deleteDoc(id, iStore,cd);

}

return “Documents deleted”;

}

How can i change the query by selecting only members of the group ‘XX_Creator’ :

SELECT SI_ID, SI_NAME FROM CI_SYSTEMOBJECTS WHERE DESCENDANTS(“SI_NAME=‘USERGROUP-USER’”, “SI_NAME=‘XX_Creator’”) AND SI_KIND=‘USER’

Thank you very much for your assistance in this matter
Fethi
cleanup.zip (21.0 KB)


Fethi (BOB member since 2018-05-17)