<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarai.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Copy Lead Functionality</title><link>https://sugarclub.sugarai.com/dev-club/f/questions-answers/7263/copy-lead-functionality</link><description>Hi 
 Is the Copy Functionality on a Lead Standard - how can I make it available/unavailable</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Copy Lead Functionality</title><link>https://sugarclub.sugarai.com/thread/31921?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2024 15:25:54 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:e4cccbb0-847f-49b2-823d-7982163cfdf5</guid><dc:creator>Francesca Shiekh</dc:creator><description>&lt;p&gt;Are you trying to take away the ability to copy records&amp;nbsp;by user,&amp;nbsp;by module, a combination of both?&lt;/p&gt;
&lt;p&gt;By Module you can do as Chris suggested, edit the record.php for the appropriate module in your custom directory and remove that ability for everyone.&lt;/p&gt;
&lt;p&gt;If you want to do it per user then you can leverage acl actions, for example changing the&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;#39;acl_action&amp;#39; =&amp;gt; &amp;#39;create&amp;#39;,&lt;/p&gt;
&lt;p&gt;to&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;#39;acl_action&amp;#39; =&amp;gt; &amp;#39;admin&amp;#39;,&lt;/p&gt;
&lt;p&gt;so that only admin users can&amp;nbsp;copy a record.&lt;/p&gt;
&lt;p&gt;If you want to get even more refined than that, then you can try to leverage a view controller for additional checks on the User&amp;#39;s Role and deny the action, or take it a step further and see if you can extend the examples&amp;nbsp;by &lt;a href="/members/enricosimonetti"&gt;Enrico Simonetti&lt;/a&gt;&amp;nbsp;here:&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://enricosimonetti.com/powerful-customisations-with-sugars-acl/"&gt;https://enricosimonetti.com/powerful-customisations-with-sugars-acl/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;FrancescaS&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Copy Lead Functionality</title><link>https://sugarclub.sugarai.com/thread/31913?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2024 11:11:02 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:396495f5-46e5-462f-8ef3-e1bb644c41a8</guid><dc:creator>Olivia Forde</dc:creator><description>&lt;p&gt;Super thanks Chris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Copy Lead Functionality</title><link>https://sugarclub.sugarai.com/thread/31911?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2024 10:33:47 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:7a62c50c-6e93-4fbc-a3b4-c591f9c99001</guid><dc:creator>Chris Raffle</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/oliviaforde335079"&gt;Olivia Forde&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;The code for the &amp;#39;Copy&amp;#39; option found in the record view action menu can be found ./custom/modules/Leads/clients/base/views/record/record.php. In the &amp;#39;buttons&amp;#39; array, you should see code like the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="php"&gt;        10 =&amp;gt; 
        array (
          &amp;#39;type&amp;#39; =&amp;gt; &amp;#39;rowaction&amp;#39;,
          &amp;#39;event&amp;#39; =&amp;gt; &amp;#39;button:duplicate_button:click&amp;#39;,
          &amp;#39;name&amp;#39; =&amp;gt; &amp;#39;duplicate_button&amp;#39;,
          &amp;#39;label&amp;#39; =&amp;gt; &amp;#39;LBL_DUPLICATE_BUTTON_LABEL&amp;#39;,
          &amp;#39;acl_module&amp;#39; =&amp;gt; &amp;#39;Leads&amp;#39;,
          &amp;#39;acl_action&amp;#39; =&amp;gt; &amp;#39;create&amp;#39;,
        ),&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If you want to remove the copy option, then take out that array. If you want to alter the copy behavior (e.g. only copying some fields), then I recommend removing that option and creating a custom action button that uses the &amp;#39;Copy field values from parent&amp;#39; to selectively choose which fields you want to copy to the new record.&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Copy Lead Functionality</title><link>https://sugarclub.sugarai.com/thread/31910?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2024 10:03:24 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:be96e851-51af-4793-902c-d6c313abfccc</guid><dc:creator>Olivia Forde</dc:creator><description>&lt;p&gt;Doe anyone know how to access the detail/code behind Copy Lead&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Copy Lead Functionality</title><link>https://sugarclub.sugarai.com/thread/31247?ContentTypeID=1</link><pubDate>Wed, 08 May 2024 11:35:39 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:246d0b15-65e5-4daf-983d-2294059680f4</guid><dc:creator>Olivia Forde</dc:creator><description>&lt;p&gt;Hi Jeff&lt;/p&gt;
&lt;p&gt;On Lead there is a menu that includes the ability to Copy a lead but I cannot fins anywhere in Studio to edit this&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Copy Lead Functionality</title><link>https://sugarclub.sugarai.com/thread/31244?ContentTypeID=1</link><pubDate>Tue, 07 May 2024 20:07:59 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:fde4495d-7c2a-4373-8745-433395271e3b</guid><dc:creator>Jeff Bickart</dc:creator><description>&lt;p&gt;&lt;a href="/members/oliviaforde335079"&gt;Olivia Forde&lt;/a&gt;&amp;nbsp;can you please provide a more detailed question?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>