<?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: Error Handling, Savepoints, and Inserts</title>
	<atom:link href="http://www.tehnrd.com/error-handling-savepoints-and-inserts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tehnrd.com/error-handling-savepoints-and-inserts/</link>
	<description>Force.com - jQuery - Technology - Life</description>
	<lastBuildDate>Wed, 08 Sep 2010 01:23:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: msreekm</title>
		<link>http://www.tehnrd.com/error-handling-savepoints-and-inserts/comment-page-1/#comment-518</link>
		<dc:creator>msreekm</dc:creator>
		<pubDate>Sun, 21 Feb 2010 17:38:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.tehnrd.com/?p=298#comment-518</guid>
		<description>Nice article. Is it possible to update a field of any object inside trigger and then based on some condition, addError() to display an error message to user? But the update to the field should be saved .

Pseudo code

lead.status=&#039;DupeFound&#039;; --this should be saved even if there is an errror!
if(lead.customfield == &#039;Dupe&#039;)
    lead.adderror(&#039;cannot convert dupe&#039;);
--other code</description>
		<content:encoded><![CDATA[<p>Nice article. Is it possible to update a field of any object inside trigger and then based on some condition, addError() to display an error message to user? But the update to the field should be saved .</p>
<p>Pseudo code</p>
<p>lead.status=&#8217;DupeFound&#8217;; &#8211;this should be saved even if there is an errror!<br />
if(lead.customfield == &#8216;Dupe&#8217;)<br />
    lead.adderror(&#8216;cannot convert dupe&#8217;);<br />
&#8211;other code</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wes</title>
		<link>http://www.tehnrd.com/error-handling-savepoints-and-inserts/comment-page-1/#comment-255</link>
		<dc:creator>Wes</dc:creator>
		<pubDate>Thu, 29 Oct 2009 13:11:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.tehnrd.com/?p=298#comment-255</guid>
		<description>Awesome article. I&#039;ve had the same issue before, but didn&#039;t solve it as cleanly as you&#039;ve done.</description>
		<content:encoded><![CDATA[<p>Awesome article. I&#8217;ve had the same issue before, but didn&#8217;t solve it as cleanly as you&#8217;ve done.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
