{"action":"created","issue":{"url":"https://api.github.com/repos/OfficeDev/office-js-docs/issues/1499","repository_url":"https://api.github.com/repos/OfficeDev/office-js-docs","labels_url":"https://api.github.com/repos/OfficeDev/office-js-docs/issues/1499/labels{/name}","comments_url":"https://api.github.com/repos/OfficeDev/office-js-docs/issues/1499/comments","events_url":"https://api.github.com/repos/OfficeDev/office-js-docs/issues/1499/events","html_url":"https://github.com/OfficeDev/office-js-docs/issues/1499","id":353733665,"node_id":"MDU6SXNzdWUzNTM3MzM2NjU=","number":1499,"title":"getItem(index) information incomplete / misleading","user":{"login":"cindymeister","id":12534562,"node_id":"MDQ6VXNlcjEyNTM0NTYy","avatar_url":"https://avatars3.githubusercontent.com/u/12534562?v=4","gravatar_id":"","url":"https://api.github.com/users/cindymeister","html_url":"https://github.com/cindymeister","followers_url":"https://api.github.com/users/cindymeister/followers","following_url":"https://api.github.com/users/cindymeister/following{/other_user}","gists_url":"https://api.github.com/users/cindymeister/gists{/gist_id}","starred_url":"https://api.github.com/users/cindymeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cindymeister/subscriptions","organizations_url":"https://api.github.com/users/cindymeister/orgs","repos_url":"https://api.github.com/users/cindymeister/repos","events_url":"https://api.github.com/users/cindymeister/events{/privacy}","received_events_url":"https://api.github.com/users/cindymeister/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-24T10:42:22Z","updated_at":"2018-08-29T02:11:57Z","closed_at":"2018-08-29T01:49:45Z","author_association":"CONTRIBUTOR","body":"\r\n## Article URL\r\nhttps://docs.microsoft.com/en-us/javascript/api/word/word.contentcontrolcollection?view=office-js#getitem-index-\r\n\r\n## Issue\r\nThe explanation for getItem(index) is: \"Gets a content control by its index in the collection.\" And the expected data type is \"number\". This implies the method returns the content control at the given position in the document (first, second, etc.) Using the method in this manner returns the error \"ItemNotFound: We couldn’t find the item you requested. Check the OfficeExtension.Error.debugInfo for more information.\" \r\n\r\nOn [Stack Overflow ](lhttps://stackoverflow.com/questions/51991371/how-to-get-a-specific-content-control-using-contentcontrols-getitem)Juan B. Labra states: \"getItem() works with IDs\". \r\n\r\nThe ID value of a content control is of type String (in the COM APIs) and it's also not an \"index\" value. I lost a lot of time trying to get this to work. Plesae update the documentation.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/OfficeDev/office-js-docs/issues/comments/416799871","html_url":"https://github.com/OfficeDev/office-js-docs/issues/1499#issuecomment-416799871","issue_url":"https://api.github.com/repos/OfficeDev/office-js-docs/issues/1499","id":416799871,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjc5OTg3MQ==","user":{"login":"Rick-Kirkham","id":9088056,"node_id":"MDQ6VXNlcjkwODgwNTY=","avatar_url":"https://avatars0.githubusercontent.com/u/9088056?v=4","gravatar_id":"","url":"https://api.github.com/users/Rick-Kirkham","html_url":"https://github.com/Rick-Kirkham","followers_url":"https://api.github.com/users/Rick-Kirkham/followers","following_url":"https://api.github.com/users/Rick-Kirkham/following{/other_user}","gists_url":"https://api.github.com/users/Rick-Kirkham/gists{/gist_id}","starred_url":"https://api.github.com/users/Rick-Kirkham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rick-Kirkham/subscriptions","organizations_url":"https://api.github.com/users/Rick-Kirkham/orgs","repos_url":"https://api.github.com/users/Rick-Kirkham/repos","events_url":"https://api.github.com/users/Rick-Kirkham/events{/privacy}","received_events_url":"https://api.github.com/users/Rick-Kirkham/received_events","type":"User","site_admin":false},"created_at":"2018-08-29T02:11:57Z","updated_at":"2018-08-29T02:11:57Z","author_association":"CONTRIBUTOR","body":"@cindymeister I'm working on getting this fixed. You don't need to open a new issue."}}
{"actor":{"display_login":"Rick-Kirkham"}}