Topic by Pat Lindeman
I am creating a custom report and implementing ROQL within the custom scripting functionality. Specifically, I am attempting to write a query to pull the number or threads created by a specific staff group. Below is the query I have:
SELECT count() FROM Incident I WHERE I.Threads.CreatedTime > '2011-08-01T00:00:00Z' AND I.Threads.CreatedTime < '2011-08-02T:00:00:00' AND I.Threads.Account.StaffGroup.ID = 113114
Reviewing the documentation at the link below indicates I can reference StaffGroup as shown above.
http://community.rightnow.com/developer/fileexchange/Connect_PHP_November_2010/Default.htm
However, when running the query on my test web page I recieve the following error:
Fatal error: Uncaught exception 'RightNow\Connect\v1\ConnectAPIError' with message 'Failed: Selected column is not an object: StaffGroup '
If anyone can point me in the right direction to be able to pull back the thread count for a particular group during a specified time period it would greatly appreciated.
Thanks,
Pat