<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Using List Custom Settings in Salesforce.com</title>
	<atom:link href="http://blog.jeffdouglas.com/2010/01/07/using-list-custom-settings-in-salesforce-com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jeffdouglas.com/2010/01/07/using-list-custom-settings-in-salesforce-com/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=using-list-custom-settings-in-salesforce-com</link>
	<description>Get your head out of your #@! and into the clouds!</description>
	<lastBuildDate>Tue, 07 Sep 2010 08:19:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: MetratoN</title>
		<link>http://blog.jeffdouglas.com/2010/01/07/using-list-custom-settings-in-salesforce-com/comment-page-1/#comment-1255</link>
		<dc:creator>MetratoN</dc:creator>
		<pubDate>Thu, 29 Jul 2010 21:21:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/2010/01/07/using-list-custom-settings-in-salesforce-com/#comment-1255</guid>
		<description>Hi my friend, good work for this web site..i found interesting you not in the final post. i need add data automatic in my package so that the moment of instalation, the custom setting component holds values by default...</description>
		<content:encoded><![CDATA[<p>Hi my friend, good work for this web site..i found interesting you not in the final post. i need add data automatic in my package so that the moment of instalation, the custom setting component holds values by default&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niels</title>
		<link>http://blog.jeffdouglas.com/2010/01/07/using-list-custom-settings-in-salesforce-com/comment-page-1/#comment-390</link>
		<dc:creator>Niels</dc:creator>
		<pubDate>Sat, 10 Apr 2010 17:02:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/2010/01/07/using-list-custom-settings-in-salesforce-com/#comment-390</guid>
		<description>Hi Jeff,

Clear, thanks. I have escalated this as a bug.

We deploy a managed package in very few but large installs and have a dozen different custom settings so creating a new custom object in lieu of each of them is not a great solution for us as it would leave all those old objects hanging.

We also like the other benefits of custom settings such as not counting against query limits and being available in formulas without having a lookup relationship consumed.

We are part of the deprecation pilot but even that leaves deprecated fields and objects in installations, only new installs are without them.

I don&#039;t know if you have someone influential you could talk to this about, but a fix would be most welcome :)

Thanks for your input and help.

Niels</description>
		<content:encoded><![CDATA[<p>Hi Jeff,</p>
<p>Clear, thanks. I have escalated this as a bug.</p>
<p>We deploy a managed package in very few but large installs and have a dozen different custom settings so creating a new custom object in lieu of each of them is not a great solution for us as it would leave all those old objects hanging.</p>
<p>We also like the other benefits of custom settings such as not counting against query limits and being available in formulas without having a lookup relationship consumed.</p>
<p>We are part of the deprecation pilot but even that leaves deprecated fields and objects in installations, only new installs are without them.</p>
<p>I don&#8217;t know if you have someone influential you could talk to this about, but a fix would be most welcome <img src='http://blog.jeffdouglas.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks for your input and help.</p>
<p>Niels</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Douglas</title>
		<link>http://blog.jeffdouglas.com/2010/01/07/using-list-custom-settings-in-salesforce-com/comment-page-1/#comment-389</link>
		<dc:creator>Jeff Douglas</dc:creator>
		<pubDate>Fri, 09 Apr 2010 17:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/2010/01/07/using-list-custom-settings-in-salesforce-com/#comment-389</guid>
		<description>It looks a little buggy. Perhaps your best bet in the short-term is to use a custom object to store these settings and then move them to actual custom settings once fixed. It should be a fairly academic process. You can use Eclipse to move the field from the custom object settings to the list settings object (they are both essentially custom objects) when fixed. You can then search and replace on the Flex code to change where the setting come from.</description>
		<content:encoded><![CDATA[<p>It looks a little buggy. Perhaps your best bet in the short-term is to use a custom object to store these settings and then move them to actual custom settings once fixed. It should be a fairly academic process. You can use Eclipse to move the field from the custom object settings to the list settings object (they are both essentially custom objects) when fixed. You can then search and replace on the Flex code to change where the setting come from.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Douglas</title>
		<link>http://blog.jeffdouglas.com/2010/01/07/using-list-custom-settings-in-salesforce-com/comment-page-1/#comment-388</link>
		<dc:creator>Jeff Douglas</dc:creator>
		<pubDate>Fri, 09 Apr 2010 17:17:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/2010/01/07/using-list-custom-settings-in-salesforce-com/#comment-388</guid>
		<description>My guess is that they get cached each time the JVM recycles plus when ever you make a change. I just changed a value and the change was reflected with the correct value immediately.</description>
		<content:encoded><![CDATA[<p>My guess is that they get cached each time the JVM recycles plus when ever you make a change. I just changed a value and the change was reflected with the correct value immediately.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andres Perez</title>
		<link>http://blog.jeffdouglas.com/2010/01/07/using-list-custom-settings-in-salesforce-com/comment-page-1/#comment-387</link>
		<dc:creator>Andres Perez</dc:creator>
		<pubDate>Fri, 09 Apr 2010 12:28:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/2010/01/07/using-list-custom-settings-in-salesforce-com/#comment-387</guid>
		<description>Since the data is being stored in a cache and not in a database, does the cache ever get refreshed?</description>
		<content:encoded><![CDATA[<p>Since the data is being stored in a cache and not in a database, does the cache ever get refreshed?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niels</title>
		<link>http://blog.jeffdouglas.com/2010/01/07/using-list-custom-settings-in-salesforce-com/comment-page-1/#comment-386</link>
		<dc:creator>Niels</dc:creator>
		<pubDate>Thu, 08 Apr 2010 20:45:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/2010/01/07/using-list-custom-settings-in-salesforce-com/#comment-386</guid>
		<description>The Flex object is only reading the custom settings and copying the resulting dataset into other parts of its code as parameters.

No creating, editing or deleting of custom settings is performed, only the select statement in my previous post.

I found this thread - maybe I am not the only one with this error:

http://community.salesforce.com/t5/General-Development/Custom-settings-return-Error-for-non-sys-admins/m-p/173879

Many thanks for your help.
Niels</description>
		<content:encoded><![CDATA[<p>The Flex object is only reading the custom settings and copying the resulting dataset into other parts of its code as parameters.</p>
<p>No creating, editing or deleting of custom settings is performed, only the select statement in my previous post.</p>
<p>I found this thread &#8211; maybe I am not the only one with this error:</p>
<p><a href="http://community.salesforce.com/t5/General-Development/Custom-settings-return-Error-for-non-sys-admins/m-p/173879" rel="nofollow">http://community.salesforce.com/t5/General-Development/Custom-settings-return-Error-for-non-sys-admins/m-p/173879</a></p>
<p>Many thanks for your help.<br />
Niels</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Douglas</title>
		<link>http://blog.jeffdouglas.com/2010/01/07/using-list-custom-settings-in-salesforce-com/comment-page-1/#comment-385</link>
		<dc:creator>Jeff Douglas</dc:creator>
		<pubDate>Thu, 08 Apr 2010 19:53:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/2010/01/07/using-list-custom-settings-in-salesforce-com/#comment-385</guid>
		<description>So are users of the Flex application creating, editing or deleting these custom settings?</description>
		<content:encoded><![CDATA[<p>So are users of the Flex application creating, editing or deleting these custom settings?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niels</title>
		<link>http://blog.jeffdouglas.com/2010/01/07/using-list-custom-settings-in-salesforce-com/comment-page-1/#comment-384</link>
		<dc:creator>Niels</dc:creator>
		<pubDate>Thu, 08 Apr 2010 12:06:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/2010/01/07/using-list-custom-settings-in-salesforce-com/#comment-384</guid>
		<description>We have a managed package with embedded Flex objects that we use for aircraft and crew scheduling. The objects need to read a custom setting (list type) to determine what event types are allowed to overlap in the calendar.

The Flex objects access the DB via the Apex API. This works great for admins but not for other profiles, where we get a query failure.

SF support tells us the only way we can do this is for the User accessing the object to have &quot;Customize Application&quot; permission (not good...!), but we only want Read access, not Read/Write or Manage. When we set that permission then our app works fine, but of course we cannot let all Users have this permission enabled.

Is there a way around this? Do we have to use heirarchy type instead of list type?

Many thanks in advance for any help.

Niels
Perfect Aviation

PS: Here is our select for the custom setting:
var sql: String = &quot;SELECT Id, &quot; +
          &quot;Name, &quot; +
          &quot;bas__Is_In_Duty__c, &quot; +
          &quot;bas__Overlap_Level__c, &quot; +
          &quot;bas__AS_Create_Edit__c, &quot; +
          &quot;bas__CS_Create_Edit__c, &quot; +
          &quot;bas__SC_Create_Edit__c, &quot; +
          &quot;bas__CC_Create_Edit__c, &quot; +
          &quot;bas__TC_Create_Edit__c &quot; +
          &quot;FROM bas__Activity_Mgt__c&quot;;
   this.query(ACTIVITY_MGT, sql, success, failed);</description>
		<content:encoded><![CDATA[<p>We have a managed package with embedded Flex objects that we use for aircraft and crew scheduling. The objects need to read a custom setting (list type) to determine what event types are allowed to overlap in the calendar.</p>
<p>The Flex objects access the DB via the Apex API. This works great for admins but not for other profiles, where we get a query failure.</p>
<p>SF support tells us the only way we can do this is for the User accessing the object to have &#8220;Customize Application&#8221; permission (not good&#8230;!), but we only want Read access, not Read/Write or Manage. When we set that permission then our app works fine, but of course we cannot let all Users have this permission enabled.</p>
<p>Is there a way around this? Do we have to use heirarchy type instead of list type?</p>
<p>Many thanks in advance for any help.</p>
<p>Niels<br />
Perfect Aviation</p>
<p>PS: Here is our select for the custom setting:<br />
var sql: String = &#8220;SELECT Id, &#8221; +<br />
          &#8220;Name, &#8221; +<br />
          &#8220;bas__Is_In_Duty__c, &#8221; +<br />
          &#8220;bas__Overlap_Level__c, &#8221; +<br />
          &#8220;bas__AS_Create_Edit__c, &#8221; +<br />
          &#8220;bas__CS_Create_Edit__c, &#8221; +<br />
          &#8220;bas__SC_Create_Edit__c, &#8221; +<br />
          &#8220;bas__CC_Create_Edit__c, &#8221; +<br />
          &#8220;bas__TC_Create_Edit__c &#8221; +<br />
          &#8220;FROM bas__Activity_Mgt__c&#8221;;<br />
   this.query(ACTIVITY_MGT, sql, success, failed);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://blog.jeffdouglas.com/2010/01/07/using-list-custom-settings-in-salesforce-com/comment-page-1/#comment-383</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 06 Apr 2010 00:38:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/2010/01/07/using-list-custom-settings-in-salesforce-com/#comment-383</guid>
		<description>I just noticed the sObject api has a GET method.

This solved my issue calling code.get(string) returns the Object that I want.</description>
		<content:encoded><![CDATA[<p>I just noticed the sObject api has a GET method.</p>
<p>This solved my issue calling code.get(string) returns the Object that I want.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://blog.jeffdouglas.com/2010/01/07/using-list-custom-settings-in-salesforce-com/comment-page-1/#comment-382</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 06 Apr 2010 00:05:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/2010/01/07/using-list-custom-settings-in-salesforce-com/#comment-382</guid>
		<description>Excellent,

Is there any way to get a fields value dynamically,  as well as the row.

So instead of
mapCodes.get(‘AFGHANISTAN’).ISO_Code__c

I can say:
ISO_Country__c code = ISO_Country__c.getInstance(‘AFGHANISTAN’);
string myCode = code.get(&#039;ISO_Code__c&#039;);</description>
		<content:encoded><![CDATA[<p>Excellent,</p>
<p>Is there any way to get a fields value dynamically,  as well as the row.</p>
<p>So instead of<br />
mapCodes.get(‘AFGHANISTAN’).ISO_Code__c</p>
<p>I can say:<br />
ISO_Country__c code = ISO_Country__c.getInstance(‘AFGHANISTAN’);<br />
string myCode = code.get(&#8216;ISO_Code__c&#8217;);</p>
]]></content:encoded>
	</item>
</channel>
</rss>
