You can execute RQL yourself through Session.ExecuteRQL (or Project.ExecuteRQL)
XMLElement response = Session.ExecuteRQL(„<MEDIA><FOLDER … /></MEDIA>“, RQL.IODataFormat.SessionKeyAndLogonGuid);
If you want a string instead of an XMLElement, you can also use Session.ExecuteRQLRaw(...)
Dr. Jonas Jacobi
Technical Lead
![]()
Mobile Lösungen, Apps und das Internet der Dinge
Ehnernstr. 157
26121 Oldenburg, Germany
Registergericht: Amtsgericht Oldenburg, HRB 209480
Geschäftsführer: Hilmar Bunjes
--
More information about SmartAPI: http://www.smartapi.de
---
Sie erhalten diese Nachricht, weil Sie in Google Groups E-Mails von der Gruppe "SmartAPI" abonniert haben.
Wenn Sie sich von dieser Gruppe abmelden und keine E-Mails mehr von dieser Gruppe erhalten möchten, senden Sie eine E-Mail an
smartapi+u...@googlegroups.com.
Wenn Sie in dieser Gruppe einen Beitrag posten möchten, senden Sie eine E-Mail an
smar...@googlegroups.com.
Weitere Optionen finden Sie unter https://groups.google.com/d/optout.
It looks good to me.
Can you see anything abnormal in the result string / RDCMS logs?
You could try using the ExecuteRQLRaw method instead, maybe something is malformed in the response.
A different (slightly hackis solution) to get the info would be to use reflection on a SmartAPI folder object, to read a the RQL-response-XmlElement, which is there but not publicly visible:
var folder = project.Folders …;
var element = (XmlElement)
folder.GetType()
.GetProperty("XmlElement")
.GetValue(folder, null);
Dr. Jonas Jacobi
Technical Lead
![]()
Mobile Lösungen, Apps und das Internet der Dinge
Ehnernstr. 157
26121 Oldenburg, Germany
Registergericht: Amtsgericht Oldenburg, HRB 209480
Geschäftsführer: Hilmar Bunjes
Unfortunately the exception you have is very unspecific, but it looked like a response was read, so I thought, it might be malformed in some way.
I don’t know myself what folderrights=-1 means, maybe someone else reading this list does.
Otherwise you have to reverse engineer the RQL yourself e.g. by changing rights and watching the folderrights value change accordingly.