SamL Posted August 7, 2023 Share Posted August 7, 2023 Hi all, I've been trying to use Python to pull all request information so that we can do some offline analysis. I've been using XMLMC and have managed to pull Asset info, following an example from Steve G on here, but keep hitting a wall when it comes to Requests. I've looked through GitHub and the Hornbill wiki but still can't to get started, I'm sure I've missed something. Using Steve's Asset example, I assumed it should be something like this: ... xmlmc.add_param("application", "com.hornbill.servicemanager") xmlmc.add_param("entity", "Requests") json_string = xmlmc.invoke("data", "entityBrowseRecords2") ... But this give the result: Quote You need the right 'app.h.searchEntityRecords' to perform this entity operation Any pointers would be appreciated, thanks! Link to comment Share on other sites More sharing options...
James Ainsworth Posted August 7, 2023 Share Posted August 7, 2023 Have you tried adding this role to the user that you are using to authenticate to Hornbill? 1 Link to comment Share on other sites More sharing options...
SamL Posted August 8, 2023 Author Share Posted August 8, 2023 Incredible, that was the problem. Thanks for that James. 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