<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Update Module Collection</title><link>https://sourceforge.net/p/sugaronrest/wiki/Update%2520Module%2520Collection/</link><description>Recent changes to Update Module Collection</description><atom:link href="https://sourceforge.net/p/sugaronrest/wiki/Update%20Module%20Collection/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 04 Mar 2017 12:37:20 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/sugaronrest/wiki/Update%20Module%20Collection/feed" rel="self" type="application/rss+xml"/><item><title>Update Module Collection modified by Kola Oyewumi</title><link>https://sourceforge.net/p/sugaronrest/wiki/Update%2520Module%2520Collection/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1 +1,138 @@
-Update Module Collection
+## Basic Usage
+This sample usage shows how to update "Leads" module entity collection data. For more request options make changes to the [Options parameter](Request Options).
+
+This implements the **_set_entries_** SugarCRM REST API method.
+
+    :::java
+    package com.sugaronrest.tests;
+    
+    import com.sugaronrest.*;
+    import com.sugaronrest.modules.Leads;
+    
+    import java.util.List;
+    import java.util.Map;
+    
+    String url = "http://demo.suiteondemand.com/service/v4_1/rest.php";
+    String username = "will";
+    String password = "will";
+    
+    SugarRestClient client = new SugarRestClient(url, username, password);
+    SugarRestRequest request = new SugarRestRequest("Leads", RequestType.BulkRead);
+    request.getOptions().setMaxResult(3);
+    
+    SugarRestResponse leadsReadResponse = client.execute(request);
+    List&amp;lt;Leads&amp;gt; leadsToUpdate = (List&amp;lt;Leads&amp;gt;) leadsReadResponse.getData();
+    
+    request = new SugarRestRequest(Leads.class, RequestType.BulkUpdate);
+    
+    // Update account description
+    for (Leads lead : leadsToUpdate)
+    {
+        lead.setAccountDescription("Lead Account moved on Jan 20, 2017.");
+    }
+    
+    request.setParameter(leadsToUpdate);
+    
+    // Select fields.
+    List&amp;lt;String&amp;gt; selectFields = new ArrayList&amp;lt;String&amp;gt;();
+    selectFields.add(NameOf.Leads.AccountName);
+    selectFields.add(NameOf.Leads.AccountDescription);
+    selectFields.add(NameOf.Leads.Status);
+    
+    request.getOptions().setSelectFields(selectFields);
+    
+    SugarRestResponse response = client.execute(request);
+
+### Response (getData())
+
+    :::java
+    List&amp;lt;String&amp;gt; updatedLeadIds = (List&amp;lt;String&amp;gt;)response.getData();
+
+### Response (getJData())
+
+    :::json
+    [
+      "10a5aca7-a94b-c84a-d01a-587662da31cd",
+      "118f5999-4e81-5510-8c00-587662372d02",
+      "1304e89b-942b-5866-2aad-587662f632d5"
+    ]
+
+### Response (getJsonRawRequest())
+
+    :::json
+    {
+      "method": "set_entries",
+      "input_type": "json",
+      "response_type": "json",
+      "rest_data": {
+        "session": "91613h1ih8cjgq29nchmgkpf53",
+        "module_name": "Leads",
+        "name_value_list": [
+          {
+            "account_description": {
+              "name": "account_description",
+              "value": "Lead Account moved on Jan 20, 2017."
+            },
+            "account_name": {
+              "name": "account_name",
+              "value": "Sandeon Consolidation Corp"
+            },
+            "id": {
+              "name": "id",
+              "value": "10a5aca7-a94b-c84a-d01a-587662da31cd"
+            },
+            "status": {
+              "name": "status",
+              "value": "New"
+            }
+          },
+          {
+            "account_description": {
+              "name": "account_description",
+              "value": "Lead Account moved on Jan 20, 2017."
+            },
+            "account_name": {
+              "name": "account_name",
+              "value": "Spindle Broadcast Corp."
+            },
+            "id": {
+              "name": "id",
+              "value": "118f5999-4e81-5510-8c00-587662372d02"
+            },
+            "status": {
+              "name": "status",
+              "value": "New"
+            }
+          },
+          {
+            "account_description": {
+              "name": "account_description",
+              "value": "Lead Account moved on Jan 20, 2017."
+            },
+            "account_name": {
+              "name": "account_name",
+              "value": "Airline Maintenance Co"
+            },
+            "id": {
+              "name": "id",
+              "value": "1304e89b-942b-5866-2aad-587662f632d5"
+            },
+            "status": {
+              "name": "status",
+              "value": "Dead"
+            }
+          }
+        ]
+      }
+    }
+
+### Response (getJsonRawResponse())
+
+    :::json
+    {
+      "ids": [
+        "10a5aca7-a94b-c84a-d01a-587662da31cd",
+        "118f5999-4e81-5510-8c00-587662372d02",
+        "1304e89b-942b-5866-2aad-587662f632d5"
+      ]
+    }
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kola Oyewumi</dc:creator><pubDate>Sat, 04 Mar 2017 12:37:20 -0000</pubDate><guid>https://sourceforge.net36e6a229919f10cdce327f62e1fd30c4ba271509</guid></item><item><title>Update Module Collection modified by Kola Oyewumi</title><link>https://sourceforge.net/p/sugaronrest/wiki/Update%2520Module%2520Collection/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Update Module Collection&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kola Oyewumi</dc:creator><pubDate>Sat, 04 Mar 2017 12:37:16 -0000</pubDate><guid>https://sourceforge.net31766d395115302ff3427bd2bfdaea8bb4d9d310</guid></item></channel></rss>