<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CSOM Archives : Binary Bits</title>
	<atom:link href="https://blog.binarybits.net/tag/csom/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.binarybits.net/tag/csom/</link>
	<description>Bits &#38; Pieces - A blog by Kannan Balasubramanian</description>
	<lastBuildDate>Wed, 17 May 2017 07:51:02 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Remove duplicate list items from SharePoint REST call result using JavaScript</title>
		<link>https://blog.binarybits.net/remove-duplicate-list-items-from-sharepoint-rest-call-result-using-javascript/</link>
					<comments>https://blog.binarybits.net/remove-duplicate-list-items-from-sharepoint-rest-call-result-using-javascript/#respond</comments>
		
		<dc:creator><![CDATA[Kannan]]></dc:creator>
		<pubDate>Wed, 17 May 2017 07:31:10 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[CSOM]]></category>
		<category><![CDATA[Javascript]]></category>
		<guid isPermaLink="false">https://blog.binarybits.net/?p=861</guid>

					<description><![CDATA[<p>The following code snippet show how to remove duplicate list items in the JSON result of a SharePoint REST call using JavaScript. Function Definition: function RemoveDuplicateItems(items, propertyName) { var result = []; if (items.length &#62; 0) { $.each(items, function (index, item) { if ($.inArray(item[propertyName], result) == -1) { result.push(item); } }); } return result; } [&#8230;]</p>
<p>The post <a href="https://blog.binarybits.net/remove-duplicate-list-items-from-sharepoint-rest-call-result-using-javascript/">Remove duplicate list items from SharePoint REST call result using JavaScript</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The following code snippet show how to remove duplicate list items in the JSON result of a SharePoint REST call using JavaScript.</p>
<p><strong>Function Definition:</strong></p>
<pre class="lang:js decode:true ">function RemoveDuplicateItems(items, propertyName) {
    var result = [];
    if (items.length &gt; 0) {
        $.each(items, function (index, item) {
            if ($.inArray(item[propertyName], result) == -1) {
                result.push(item);
            }
        });
    }
    return result;
}</pre>
<p><strong>Function Usage:</strong><br />
In the below code, assumption is that, the REST call returns <em>data.d.results</em> and the column for which duplicate items need to be removed is <em>Title</em></p>
<pre class="lang:js decode:true">var items = data.d.results;
items = RemoveDuplicateItems(items, 'Title');</pre>
<p>&nbsp;</p>
<p>The post <a href="https://blog.binarybits.net/remove-duplicate-list-items-from-sharepoint-rest-call-result-using-javascript/">Remove duplicate list items from SharePoint REST call result using JavaScript</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.binarybits.net/remove-duplicate-list-items-from-sharepoint-rest-call-result-using-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Minified using Disk

Served from: blog.binarybits.net @ 2026-04-23 06:39:03 by W3 Total Cache
-->