{"id":2203,"date":"2018-04-28T11:47:53","date_gmt":"2018-04-28T11:47:53","guid":{"rendered":"https:\/\/daoudisamir.com\/?p=2203"},"modified":"2025-05-22T00:30:48","modified_gmt":"2025-05-22T00:30:48","slug":"retrieve-sharepoint-list-items-using-javascript","status":"publish","type":"post","link":"https:\/\/samtech365.com\/retrieve-sharepoint-list-items-using-javascript\/","title":{"rendered":"Retrieve SharePoint list items using JavaScript"},"content":{"rendered":"<p>In this article, I will describe a simple use of SP.JS file to retrieve data from a SharePoint list and display the items in a certain way.<\/p>\n<p>In this scenario, I have a list of FAQs as a custom list (ID, Title, Answer, Image&#8230;etc).<\/p>\n<p>I needed to pull the items from the list and append them into Div in a SharePoint Page, applying the right CSS styles and adding some fancy stuffs (images and so on).<\/p>\n<p>Here are the steps to follow :<\/p>\n<h3>1- Create (if needed) your list<\/h3>\n<h3>2- Fill the rows (items).<\/h3>\n<h3>3- Create a new SharePoint Page<\/h3>\n<h3>4- Switch to edit mode (if not already in edit mode)<\/h3>\n<h3>5- Insert a Content Editor WebPart<\/h3>\n<h3>6- Inlcude the script.<\/h3>\n<p>&nbsp;<\/p>\n<h1>The Script<\/h1>\n<p>This is 100% client side script which will use SP.JS library to load the list items, loop over them and append them to a page DIV.<\/p>\n<p>&nbsp;<\/p>\n<p>In this part of the script, I Check If the SP.JS has been loaded properly, and I create a new instance of the ClientContext, I also create an instance of my list <strong>FAQs.<\/strong><\/p>\n<div>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"js\">var clientContext;\r\nvar website;\r\n\r\n\/\/ Make sure the SharePoint script file 'sp.js' is loaded before your\r\n\/\/ code runs.\r\nSP.SOD.executeFunc('sp.js', 'SP.ClientContext', sharePointReady);\r\n\r\n\/\/ Create an instance of the current context.\r\nfunction sharePointReady() {\r\n    var clientContext = new SP.ClientContext();\r\n    var oList = clientContext.get_web().get_lists().getByTitle('FAQs');\r\n\r\n    var camlQuery = new SP.CamlQuery();\r\n    camlQuery.set_viewXml(\r\n        '&lt;View&gt;&lt;Query&gt;&lt;Where&gt;&lt;Geq&gt;&lt;FieldRef Name=\\'ID\\'\/&gt;' + \r\n        '&lt;Value Type=\\'Number\\'&gt;1&lt;\/Value&gt;&lt;\/Geq&gt;&lt;\/Where&gt;&lt;\/Query&gt;' + \r\n        '&lt;RowLimit&gt;10&lt;\/RowLimit&gt;&lt;\/View&gt;'\r\n    );\r\n    this.collListItem = oList.getItems(camlQuery);\r\n\r\n    clientContext.load(collListItem);\r\n    clientContext.executeQueryAsync(\r\n        Function.createDelegate(this, this.onQuerySucceeded), \r\n        Function.createDelegate(this, this.onQueryFailed)\r\n    ); \r\n}<\/pre>\n<\/div>\n<div>PS: I use CAML query to get 10 rows and I attach two different functions for the onQuerySucceede and OnQueryFailed.<\/div>\n<div>Please note that the 1st bloc of code checks for the SP.JS and waits until it has fully loaded.<\/div>\n<div><\/div>\n<div>These are the two functions that will be called on success or failure.<\/div>\n<div>If the script runs property, the OnQuerySucceeded will loop over each item and calls the <strong>GetLine<\/strong> function to get the HTML content for that specific line, and append it to the <strong>Content<\/strong> div.<\/div>\n<div>However, if something goes wrong, an error message will be shown.<\/div>\n<div>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">function onQuerySucceeded(sender, args) {\r\n    var listItemInfo = '';\r\n    var listItemEnumerator = collListItem.getEnumerator();\r\n    while (listItemEnumerator.moveNext()) {\r\n        var oListItem = listItemEnumerator.get_current();\r\n        var FAQLine = GetLine(oListItem.get_item('Title'),oListItem.get_item('Answer'),oListItem.get_item('Created'));\r\n        \r\n        $('#Content').append(FAQLine);\r\n    }\r\n\r\n}\r\n\r\nfunction onQueryFailed(sender, args) {\r\n    alert('Request failed. ' + args.get_message() + \r\n        '\\n' + args.get_stackTrace());\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>GetLine takes the parameters (Question, Answer and CreateDate), and put them in a nice HTML code.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">function GetLine(Question, Answer, CreateDate)\r\n{\r\n    var Content='&lt;div&gt;';\r\n    Content+='    &lt;img src=\"https:\/\/cdn1.iconfinder.com\/data\/icons\/all_google_icons_symbols_by_carlosjj-du\/128\/question-y.png\" style=\"max-height:48px;float:left;padding:10px;\"\/&gt;&lt;h3&gt;'+Question+'&lt;\/h3&gt;&lt;p&gt;'+Answer+'&lt;\/h4&gt;';\r\n    Content+='&lt;span class=\"badge badge-pill badge-success pull-right\"&gt;'+CreateDate+'&lt;\/span&gt;';\r\n    Content+='    &lt;\/div&gt;';\r\n    return Content;\r\n}<\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>The final script should look like this:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;link rel=\"stylesheet\" href=\"https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.1.0\/css\/bootstrap.min.css\" integrity=\"sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4\" crossorigin=\"anonymous\"\/&gt; \r\n\r\n&lt;script&gt;\r\nvar clientContext;\r\nvar website;\r\n\r\n\/\/ Make sure the SharePoint script file 'sp.js' is loaded before your\r\n\/\/ code runs.\r\nSP.SOD.executeFunc('sp.js', 'SP.ClientContext', sharePointReady);\r\n\r\n\/\/ Create an instance of the current context.\r\nfunction sharePointReady() {\r\n    var clientContext = new SP.ClientContext();\r\n    var oList = clientContext.get_web().get_lists().getByTitle('FAQs');\r\n\r\n    var camlQuery = new SP.CamlQuery();\r\n    camlQuery.set_viewXml(\r\n        '&lt;View&gt;&lt;Query&gt;&lt;Where&gt;&lt;Geq&gt;&lt;FieldRef Name=\\'ID\\'\/&gt;' + \r\n        '&lt;Value Type=\\'Number\\'&gt;1&lt;\/Value&gt;&lt;\/Geq&gt;&lt;\/Where&gt;&lt;\/Query&gt;' + \r\n        '&lt;RowLimit&gt;10&lt;\/RowLimit&gt;&lt;\/View&gt;'\r\n    );\r\n    this.collListItem = oList.getItems(camlQuery);\r\n\r\n    clientContext.load(collListItem);\r\n    clientContext.executeQueryAsync(\r\n        Function.createDelegate(this, this.onQuerySucceeded), \r\n        Function.createDelegate(this, this.onQueryFailed)\r\n    ); \r\n}\r\n\r\nfunction onQuerySucceeded(sender, args) {\r\n    var listItemInfo = '';\r\n    var listItemEnumerator = collListItem.getEnumerator();\r\n    while (listItemEnumerator.moveNext()) {\r\n        var oListItem = listItemEnumerator.get_current();\r\n        var FAQLine = GetLine(oListItem.get_item('Title'),oListItem.get_item('Answer'),oListItem.get_item('Created'));\r\n        \r\n        $('#Content').append(FAQLine);\r\n    }\r\n\r\n}\r\n\r\nfunction GetLine(Question, Answer, CreateDate)\r\n{\r\n    var Content='&lt;div style=\"margin-bottom:30px;\"&gt;';\r\n    Content+='    &lt;h4&gt;&lt;img src=\"https:\/\/cdn1.iconfinder.com\/data\/icons\/all_google_icons_symbols_by_carlosjj-du\/128\/question-y.png\" style=\"max-height:48px;float:left;padding:10px;\"\/&gt;'+Question+'&lt;\/h4&gt;&lt;p&gt;'+Answer+'&lt;\/h4&gt;';\r\n    Content+='    &lt;\/div&gt;';\r\n    return Content;\r\n}\r\n\r\nfunction onQueryFailed(sender, args) {\r\n    alert('Request failed. ' + args.get_message() + \r\n        '\\n' + args.get_stackTrace());\r\n}\r\n&lt;\/script&gt; \r\n&lt;div id=\"Content\"&gt; \r\n\r\n&lt;\/div&gt;<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, I will describe a simple use of SP.JS file to retrieve data&#8230;<\/p>\n","protected":false},"author":1,"featured_media":2207,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[34,18,16],"tags":[194],"class_list":["post-2203","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","category-m365","category-sharepoint","tag-sharepoint"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Retrieve SharePoint list items using JavaScript - SamTech 365 - Samir Daoudi Technical Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/samtech365.com\/retrieve-sharepoint-list-items-using-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Retrieve SharePoint list items using JavaScript\" \/>\n<meta property=\"og:description\" content=\"In this article, I will describe a simple use of SP.JS file to retrieve data from a SharePoint list and display the items in a certain way. In this scenario, I have a list of FAQs as a custom list (ID, Title, Answer, Image\u2026etc). I needed to pull the items from the list and append them into Div in a SharePoint Page, applying the right CSS styles and adding some fancy stuffs (images and so on).\" \/>\n<meta property=\"og:url\" content=\"https:\/\/samtech365.com\/retrieve-sharepoint-list-items-using-javascript\/\" \/>\n<meta property=\"og:site_name\" content=\"SamTech 365 - Samir Daoudi Technical Blog\" \/>\n<meta property=\"article:published_time\" content=\"2018-04-28T11:47:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-22T00:30:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/samtech365.com\/wp-content\/uploads\/2018\/04\/sp.jpg?fit=1000%2C625&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"625\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Samir Daoudi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Retrieve SharePoint list items using JavaScript\" \/>\n<meta name=\"twitter:description\" content=\"In this article, I will describe a simple use of SP.JS file to retrieve data from a SharePoint list and display the items in a certain way. In this scenario, I have a list of FAQs as a custom list (ID, Title, Answer, Image\u2026etc). I needed to pull the items from the list and append them into Div in a SharePoint Page, applying the right CSS styles and adding some fancy stuffs (images and so on).\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/daoudisamir.com\/wp-content\/uploads\/2018\/04\/sp.jpg\" \/>\n<meta name=\"twitter:creator\" content=\"@daoudi_samir\" \/>\n<meta name=\"twitter:site\" content=\"@daoudi_samir\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Samir Daoudi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/samtech365.com\\\/retrieve-sharepoint-list-items-using-javascript\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/samtech365.com\\\/retrieve-sharepoint-list-items-using-javascript\\\/\"},\"author\":{\"name\":\"Samir Daoudi\",\"@id\":\"https:\\\/\\\/samtech365.com\\\/#\\\/schema\\\/person\\\/92fc47c88485daac9dc759ad3f9e18e6\"},\"headline\":\"Retrieve SharePoint list items using JavaScript\",\"datePublished\":\"2018-04-28T11:47:53+00:00\",\"dateModified\":\"2025-05-22T00:30:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/samtech365.com\\\/retrieve-sharepoint-list-items-using-javascript\\\/\"},\"wordCount\":314,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/samtech365.com\\\/#\\\/schema\\\/person\\\/92fc47c88485daac9dc759ad3f9e18e6\"},\"image\":{\"@id\":\"https:\\\/\\\/samtech365.com\\\/retrieve-sharepoint-list-items-using-javascript\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/samtech365.com\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/sp.jpg?fit=1000%2C625&ssl=1\",\"keywords\":[\"SharePoint\"],\"articleSection\":[\"JavaScript\",\"Microsoft 365\",\"SharePoint\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/samtech365.com\\\/retrieve-sharepoint-list-items-using-javascript\\\/\",\"url\":\"https:\\\/\\\/samtech365.com\\\/retrieve-sharepoint-list-items-using-javascript\\\/\",\"name\":\"Retrieve SharePoint list items using JavaScript - SamTech 365 - Samir Daoudi Technical Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/samtech365.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/samtech365.com\\\/retrieve-sharepoint-list-items-using-javascript\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/samtech365.com\\\/retrieve-sharepoint-list-items-using-javascript\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/samtech365.com\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/sp.jpg?fit=1000%2C625&ssl=1\",\"datePublished\":\"2018-04-28T11:47:53+00:00\",\"dateModified\":\"2025-05-22T00:30:48+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/samtech365.com\\\/retrieve-sharepoint-list-items-using-javascript\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/samtech365.com\\\/retrieve-sharepoint-list-items-using-javascript\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/samtech365.com\\\/retrieve-sharepoint-list-items-using-javascript\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/samtech365.com\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/sp.jpg?fit=1000%2C625&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/samtech365.com\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/sp.jpg?fit=1000%2C625&ssl=1\",\"width\":1000,\"height\":625},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/samtech365.com\\\/retrieve-sharepoint-list-items-using-javascript\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/samtech365.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Retrieve SharePoint list items using JavaScript\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/samtech365.com\\\/#website\",\"url\":\"https:\\\/\\\/samtech365.com\\\/\",\"name\":\"SamTech 365 - Samir Daoudi Technical Blog\",\"description\":\"PowerPlatform, Power Apps, Power Automate, PVA, SharePoint, C#, .Net, SQL, Azure News, Tips ....etc\",\"publisher\":{\"@id\":\"https:\\\/\\\/samtech365.com\\\/#\\\/schema\\\/person\\\/92fc47c88485daac9dc759ad3f9e18e6\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/samtech365.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/samtech365.com\\\/#\\\/schema\\\/person\\\/92fc47c88485daac9dc759ad3f9e18e6\",\"name\":\"Samir Daoudi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/i0.wp.com\\\/samtech365.com\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/samtech365_v3-e1755126237898.png?fit=192%2C96&ssl=1\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/samtech365.com\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/samtech365_v3-e1755126237898.png?fit=192%2C96&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/samtech365.com\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/samtech365_v3-e1755126237898.png?fit=192%2C96&ssl=1\",\"width\":192,\"height\":96,\"caption\":\"Samir Daoudi\"},\"logo\":{\"@id\":\"https:\\\/\\\/i0.wp.com\\\/samtech365.com\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/samtech365_v3-e1755126237898.png?fit=192%2C96&ssl=1\"},\"url\":\"https:\\\/\\\/samtech365.com\\\/author\\\/daoudi-samirgmail-com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Retrieve SharePoint list items using JavaScript - SamTech 365 - Samir Daoudi Technical Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/samtech365.com\/retrieve-sharepoint-list-items-using-javascript\/","og_locale":"en_US","og_type":"article","og_title":"Retrieve SharePoint list items using JavaScript","og_description":"In this article, I will describe a simple use of SP.JS file to retrieve data from a SharePoint list and display the items in a certain way. In this scenario, I have a list of FAQs as a custom list (ID, Title, Answer, Image\u2026etc). I needed to pull the items from the list and append them into Div in a SharePoint Page, applying the right CSS styles and adding some fancy stuffs (images and so on).","og_url":"https:\/\/samtech365.com\/retrieve-sharepoint-list-items-using-javascript\/","og_site_name":"SamTech 365 - Samir Daoudi Technical Blog","article_published_time":"2018-04-28T11:47:53+00:00","article_modified_time":"2025-05-22T00:30:48+00:00","og_image":[{"width":1000,"height":625,"url":"https:\/\/i0.wp.com\/samtech365.com\/wp-content\/uploads\/2018\/04\/sp.jpg?fit=1000%2C625&ssl=1","type":"image\/jpeg"}],"author":"Samir Daoudi","twitter_card":"summary_large_image","twitter_title":"Retrieve SharePoint list items using JavaScript","twitter_description":"In this article, I will describe a simple use of SP.JS file to retrieve data from a SharePoint list and display the items in a certain way. In this scenario, I have a list of FAQs as a custom list (ID, Title, Answer, Image\u2026etc). I needed to pull the items from the list and append them into Div in a SharePoint Page, applying the right CSS styles and adding some fancy stuffs (images and so on).","twitter_image":"https:\/\/daoudisamir.com\/wp-content\/uploads\/2018\/04\/sp.jpg","twitter_creator":"@daoudi_samir","twitter_site":"@daoudi_samir","twitter_misc":{"Written by":"Samir Daoudi","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/samtech365.com\/retrieve-sharepoint-list-items-using-javascript\/#article","isPartOf":{"@id":"https:\/\/samtech365.com\/retrieve-sharepoint-list-items-using-javascript\/"},"author":{"name":"Samir Daoudi","@id":"https:\/\/samtech365.com\/#\/schema\/person\/92fc47c88485daac9dc759ad3f9e18e6"},"headline":"Retrieve SharePoint list items using JavaScript","datePublished":"2018-04-28T11:47:53+00:00","dateModified":"2025-05-22T00:30:48+00:00","mainEntityOfPage":{"@id":"https:\/\/samtech365.com\/retrieve-sharepoint-list-items-using-javascript\/"},"wordCount":314,"commentCount":0,"publisher":{"@id":"https:\/\/samtech365.com\/#\/schema\/person\/92fc47c88485daac9dc759ad3f9e18e6"},"image":{"@id":"https:\/\/samtech365.com\/retrieve-sharepoint-list-items-using-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/samtech365.com\/wp-content\/uploads\/2018\/04\/sp.jpg?fit=1000%2C625&ssl=1","keywords":["SharePoint"],"articleSection":["JavaScript","Microsoft 365","SharePoint"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/samtech365.com\/retrieve-sharepoint-list-items-using-javascript\/","url":"https:\/\/samtech365.com\/retrieve-sharepoint-list-items-using-javascript\/","name":"Retrieve SharePoint list items using JavaScript - SamTech 365 - Samir Daoudi Technical Blog","isPartOf":{"@id":"https:\/\/samtech365.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/samtech365.com\/retrieve-sharepoint-list-items-using-javascript\/#primaryimage"},"image":{"@id":"https:\/\/samtech365.com\/retrieve-sharepoint-list-items-using-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/samtech365.com\/wp-content\/uploads\/2018\/04\/sp.jpg?fit=1000%2C625&ssl=1","datePublished":"2018-04-28T11:47:53+00:00","dateModified":"2025-05-22T00:30:48+00:00","breadcrumb":{"@id":"https:\/\/samtech365.com\/retrieve-sharepoint-list-items-using-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/samtech365.com\/retrieve-sharepoint-list-items-using-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/samtech365.com\/retrieve-sharepoint-list-items-using-javascript\/#primaryimage","url":"https:\/\/i0.wp.com\/samtech365.com\/wp-content\/uploads\/2018\/04\/sp.jpg?fit=1000%2C625&ssl=1","contentUrl":"https:\/\/i0.wp.com\/samtech365.com\/wp-content\/uploads\/2018\/04\/sp.jpg?fit=1000%2C625&ssl=1","width":1000,"height":625},{"@type":"BreadcrumbList","@id":"https:\/\/samtech365.com\/retrieve-sharepoint-list-items-using-javascript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/samtech365.com\/"},{"@type":"ListItem","position":2,"name":"Retrieve SharePoint list items using JavaScript"}]},{"@type":"WebSite","@id":"https:\/\/samtech365.com\/#website","url":"https:\/\/samtech365.com\/","name":"SamTech 365 - Samir Daoudi Technical Blog","description":"PowerPlatform, Power Apps, Power Automate, PVA, SharePoint, C#, .Net, SQL, Azure News, Tips ....etc","publisher":{"@id":"https:\/\/samtech365.com\/#\/schema\/person\/92fc47c88485daac9dc759ad3f9e18e6"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/samtech365.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/samtech365.com\/#\/schema\/person\/92fc47c88485daac9dc759ad3f9e18e6","name":"Samir Daoudi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/i0.wp.com\/samtech365.com\/wp-content\/uploads\/2025\/05\/samtech365_v3-e1755126237898.png?fit=192%2C96&ssl=1","url":"https:\/\/i0.wp.com\/samtech365.com\/wp-content\/uploads\/2025\/05\/samtech365_v3-e1755126237898.png?fit=192%2C96&ssl=1","contentUrl":"https:\/\/i0.wp.com\/samtech365.com\/wp-content\/uploads\/2025\/05\/samtech365_v3-e1755126237898.png?fit=192%2C96&ssl=1","width":192,"height":96,"caption":"Samir Daoudi"},"logo":{"@id":"https:\/\/i0.wp.com\/samtech365.com\/wp-content\/uploads\/2025\/05\/samtech365_v3-e1755126237898.png?fit=192%2C96&ssl=1"},"url":"https:\/\/samtech365.com\/author\/daoudi-samirgmail-com\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/samtech365.com\/wp-content\/uploads\/2018\/04\/sp.jpg?fit=1000%2C625&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/samtech365.com\/wp-json\/wp\/v2\/posts\/2203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/samtech365.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/samtech365.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/samtech365.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/samtech365.com\/wp-json\/wp\/v2\/comments?post=2203"}],"version-history":[{"count":0,"href":"https:\/\/samtech365.com\/wp-json\/wp\/v2\/posts\/2203\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/samtech365.com\/wp-json\/wp\/v2\/media\/2207"}],"wp:attachment":[{"href":"https:\/\/samtech365.com\/wp-json\/wp\/v2\/media?parent=2203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/samtech365.com\/wp-json\/wp\/v2\/categories?post=2203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/samtech365.com\/wp-json\/wp\/v2\/tags?post=2203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}