{"action":"closed","issue":{"url":"https://api.github.com/repos/pnp/pnpjs/issues/195","repository_url":"https://api.github.com/repos/pnp/pnpjs","labels_url":"https://api.github.com/repos/pnp/pnpjs/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/pnp/pnpjs/issues/195/comments","events_url":"https://api.github.com/repos/pnp/pnpjs/issues/195/events","html_url":"https://github.com/pnp/pnpjs/issues/195","id":348001976,"node_id":"MDU6SXNzdWUzNDgwMDE5NzY=","number":195,"title":"Get item version","user":{"login":"mame13fr","id":10500390,"node_id":"MDQ6VXNlcjEwNTAwMzkw","avatar_url":"https://avatars2.githubusercontent.com/u/10500390?v=4","gravatar_id":"","url":"https://api.github.com/users/mame13fr","html_url":"https://github.com/mame13fr","followers_url":"https://api.github.com/users/mame13fr/followers","following_url":"https://api.github.com/users/mame13fr/following{/other_user}","gists_url":"https://api.github.com/users/mame13fr/gists{/gist_id}","starred_url":"https://api.github.com/users/mame13fr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mame13fr/subscriptions","organizations_url":"https://api.github.com/users/mame13fr/orgs","repos_url":"https://api.github.com/users/mame13fr/repos","events_url":"https://api.github.com/users/mame13fr/events{/privacy}","received_events_url":"https://api.github.com/users/mame13fr/received_events","type":"User","site_admin":false},"labels":[{"id":802869729,"node_id":"MDU6TGFiZWw4MDI4Njk3Mjk=","url":"https://api.github.com/repos/pnp/pnpjs/labels/area:%20documentation","name":"area: documentation","color":"eaeaea","default":false},{"id":802867713,"node_id":"MDU6TGFiZWw4MDI4Njc3MTM=","url":"https://api.github.com/repos/pnp/pnpjs/labels/status:%20answered","name":"status: answered","color":"128A0C","default":false},{"id":802864291,"node_id":"MDU6TGFiZWw4MDI4NjQyOTE=","url":"https://api.github.com/repos/pnp/pnpjs/labels/type:%20question","name":"type: question","color":"84b6eb","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-08-06T16:53:04Z","updated_at":"2018-08-13T16:18:23Z","closed_at":"2018-08-13T16:18:23Z","author_association":"NONE","body":"Thank you for reporting an issue, suggesting an enhancement, or asking a question. We appreciate your feedback - to help the team understand your\r\nneeds please complete the below template to ensure we have the details to help. Thanks!\r\n\r\n**Please check out the [Docs](https://pnp.github.io/pnpjs/) to see if your question is already addressed there. This will help us ensure our documentation covers the most frequent questions.**\r\n\r\n### Category\r\n- [ ] Enhancement\r\n- [ ] Bug\r\n- [X] Question\r\n- [ ] Documentation gap/issue\r\n\r\n### Version\r\n\r\nPlease specify what version of the library you are using: [ last version ]\r\n\r\n------------------\r\n\r\nHi all,\r\n\r\nI have a question, I want to get all version of an sp list item (SP2013)\r\n\r\nMy code is : \r\n```\r\npublic getVersions(idList: string, idListItem: number): void {\r\n\r\n        const list = pnp.sp.web.lists.getById(idList);\r\n        const item = list.items.getById(idListItem);\r\n\r\n        item.versions.get().then(ver => {            \r\n                console.log(JSON.stringify(ver, null, 4));\r\n            });\r\n    }\r\n```\r\n\r\nBut the error message is : \r\n{\"error\":{\"code\":\"-1, Microsoft.SharePoint.Client.ResourceNotFoundException\",\"message\":{\"lang\":\"fr-FR\",\"value\":\"La ressource est introuvable pour la demande versions.\"}}}\r\n\r\nIf anyone have an idea to help me... :)\r\n\r\nThanks a lot !!!\r\n"}}
{"actor":{"display_login":"patrick-rodgers"}}