carlt Posted August 7, 2017 Share Posted August 7, 2017 I am trying to retrieve cancelled calls via the API I've tried the smGetRequests call, just setting the statusEquals, rowstart and limit parameters - which returns data for all statuses apart from 'status.cancelled' - it gives a count of 0 (we do have cancelled calls). Is there another API call or perhaps a queryExec query that will return cancelled calls? Thanks Carl Link to comment Share on other sites More sharing options...
James Ainsworth Posted August 7, 2017 Share Posted August 7, 2017 Hi @carlt The smGetRequests api I believe excludes cancelled requests as these are typically requests that have been raised in error or through testing and this API ensures that these cancelled requests are not included as entries in reporting, charts, or elsewhere. I will have a look to see if I can find another API to provide this. Regards, James Link to comment Share on other sites More sharing options...
carlt Posted August 8, 2017 Author Share Posted August 8, 2017 Thanks @James Ainsworth It would be useful if there was a way to do this via the API. Link to comment Share on other sites More sharing options...
James Ainsworth Posted August 8, 2017 Share Posted August 8, 2017 @carlt Would it be possible to put a little bit of context around what you are trying to achieve? Even with the APIs, knowing the type of info on the cancelled requests that you would like to retrieve might help in deciding which API to use or which API we could look at to see if it can be extended. Regards, James Link to comment Share on other sites More sharing options...
Guest Chaz Posted August 9, 2017 Share Posted August 9, 2017 The key here is that all Cancelled requests are marked as archived, adding the following parameter when calling smGetRequests will get you the Requests you're after. <archiveEquals>1</archiveEquals> If you need to use this API again in the future, we actually use it to power Views in the Request list, so you can always build a view with the right criteria and then see what we're sending to the server to populate the list. Hope that helps Link to comment Share on other sites More sharing options...
carlt Posted August 9, 2017 Author Share Posted August 9, 2017 Thanks @Chaz the archiveEquals parameter does indeed return the requests I'm after. And thanks for the tip about checking what the Views send to the server - very useful. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now