<?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: Set Defaults for Opportunity Contact Roles (when converting)</title>
	<atom:link href="http://sfdc.arrowpointe.com/2009/02/06/set-defaults-for-opportunity-contact-roles-when-converting/feed/" rel="self" type="application/rss+xml" />
	<link>http://sfdc.arrowpointe.com/2009/02/06/set-defaults-for-opportunity-contact-roles-when-converting/</link>
	<description>Authored by Scott Hemmeter of Arrowpointe Corp, this blog is written from the perspective of a Salesforce.com solution provider and contains information on Arrowpointe's AppExchange products as well as tips, findings, sample code, functionality wishes, etc.</description>
	<lastBuildDate>Wed, 16 May 2012 17:48:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Tom</title>
		<link>http://sfdc.arrowpointe.com/2009/02/06/set-defaults-for-opportunity-contact-roles-when-converting/comment-page-1/#comment-66389</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 02 May 2012 21:53:55 +0000</pubDate>
		<guid isPermaLink="false">http://sfdc.arrowpointe.com/?p=587#comment-66389</guid>
		<description>I figured out my issue.  Duh.  Missing the list name: </description>
		<content:encoded><![CDATA[<p>I figured out my issue.  Duh.  Missing the list name:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://sfdc.arrowpointe.com/2009/02/06/set-defaults-for-opportunity-contact-roles-when-converting/comment-page-1/#comment-66388</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 02 May 2012 20:57:09 +0000</pubDate>
		<guid isPermaLink="false">http://sfdc.arrowpointe.com/?p=587#comment-66388</guid>
		<description>@Eric Gronholz, I like this approach.  However, I get an &quot;unexpected token&quot; error on the List line (line 5 in my case).  Any idea why that is happening?</description>
		<content:encoded><![CDATA[<p>@Eric Gronholz, I like this approach.  However, I get an &#8220;unexpected token&#8221; error on the List line (line 5 in my case).  Any idea why that is happening?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Corinne</title>
		<link>http://sfdc.arrowpointe.com/2009/02/06/set-defaults-for-opportunity-contact-roles-when-converting/comment-page-1/#comment-65688</link>
		<dc:creator>Corinne</dc:creator>
		<pubDate>Thu, 03 Nov 2011 23:02:49 +0000</pubDate>
		<guid isPermaLink="false">http://sfdc.arrowpointe.com/?p=587#comment-65688</guid>
		<description>Hi Scott, 

Thanks for an awesome trigger and being so helpful in the comments! Quick question, since I&#039;m a novice Salesforce user: how would I modify this trigger so it only applies to leads that had a certain value when converted? For example, if I only wanted the Role set if the original lead had &quot;Do Not Call&quot; checked off?  Thanks in advance! :)</description>
		<content:encoded><![CDATA[<p>Hi Scott, </p>
<p>Thanks for an awesome trigger and being so helpful in the comments! Quick question, since I&#8217;m a novice Salesforce user: how would I modify this trigger so it only applies to leads that had a certain value when converted? For example, if I only wanted the Role set if the original lead had &#8220;Do Not Call&#8221; checked off?  Thanks in advance! <img src='http://sfdc.arrowpointe.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Hemmeter</title>
		<link>http://sfdc.arrowpointe.com/2009/02/06/set-defaults-for-opportunity-contact-roles-when-converting/comment-page-1/#comment-65351</link>
		<dc:creator>Scott Hemmeter</dc:creator>
		<pubDate>Thu, 31 Mar 2011 20:53:49 +0000</pubDate>
		<guid isPermaLink="false">http://sfdc.arrowpointe.com/?p=587#comment-65351</guid>
		<description>@mike, I think you&#039;d just need to change the class and test class to not use Decision Maker and to use your new role value.</description>
		<content:encoded><![CDATA[<p>@mike, I think you&#8217;d just need to change the class and test class to not use Decision Maker and to use your new role value.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Hemmeter</title>
		<link>http://sfdc.arrowpointe.com/2009/02/06/set-defaults-for-opportunity-contact-roles-when-converting/comment-page-1/#comment-65350</link>
		<dc:creator>Scott Hemmeter</dc:creator>
		<pubDate>Thu, 31 Mar 2011 20:30:48 +0000</pubDate>
		<guid isPermaLink="false">http://sfdc.arrowpointe.com/?p=587#comment-65350</guid>
		<description>@mike,  the only thing I can think of is that you have fields required on your objects and the test code isn&#039;t populating enough fields.  perhaps it&#039;s hitting a validation rule.  The lead I have being created is only populating the minimum.  Also, if you allow for validation rules and triggers on convert, it&#039;s possible that the trigger is not firing when the test code converts the lead.

I&#039;d suggest running the test code of that one class and look in its log for the word &quot;EXCEPTION&quot;.  It will show any errors you may have in there.</description>
		<content:encoded><![CDATA[<p>@mike,  the only thing I can think of is that you have fields required on your objects and the test code isn&#8217;t populating enough fields.  perhaps it&#8217;s hitting a validation rule.  The lead I have being created is only populating the minimum.  Also, if you allow for validation rules and triggers on convert, it&#8217;s possible that the trigger is not firing when the test code converts the lead.</p>
<p>I&#8217;d suggest running the test code of that one class and look in its log for the word &#8220;EXCEPTION&#8221;.  It will show any errors you may have in there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://sfdc.arrowpointe.com/2009/02/06/set-defaults-for-opportunity-contact-roles-when-converting/comment-page-1/#comment-65349</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Thu, 31 Mar 2011 20:29:20 +0000</pubDate>
		<guid isPermaLink="false">http://sfdc.arrowpointe.com/?p=587#comment-65349</guid>
		<description>Scott,
    Sorry i forgot to mention that i created new role &quot;primary role&quot; so instead of decision maker i included this , your code covers 100% for decision maker but if i include this primary role it just covers 2% do i have to change anything in code?</description>
		<content:encoded><![CDATA[<p>Scott,<br />
    Sorry i forgot to mention that i created new role &#8220;primary role&#8221; so instead of decision maker i included this , your code covers 100% for decision maker but if i include this primary role it just covers 2% do i have to change anything in code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://sfdc.arrowpointe.com/2009/02/06/set-defaults-for-opportunity-contact-roles-when-converting/comment-page-1/#comment-65348</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Thu, 31 Mar 2011 20:21:21 +0000</pubDate>
		<guid isPermaLink="false">http://sfdc.arrowpointe.com/?p=587#comment-65348</guid>
		<description>Hi Scott,
     i exactly copied ur code and test class in my instance but the test class covers only 2%, i been trying this since yesterday but couldn&#039;t get enough coverage.Any help for covering my class is appreciated</description>
		<content:encoded><![CDATA[<p>Hi Scott,<br />
     i exactly copied ur code and test class in my instance but the test class covers only 2%, i been trying this since yesterday but couldn&#8217;t get enough coverage.Any help for covering my class is appreciated</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Hemmeter</title>
		<link>http://sfdc.arrowpointe.com/2009/02/06/set-defaults-for-opportunity-contact-roles-when-converting/comment-page-1/#comment-65307</link>
		<dc:creator>Scott Hemmeter</dc:creator>
		<pubDate>Wed, 02 Mar 2011 00:32:29 +0000</pubDate>
		<guid isPermaLink="false">http://sfdc.arrowpointe.com/?p=587#comment-65307</guid>
		<description>@mike, this trigger is only for converting a lead.  You&#039;d have to do a trigger on the insert of a new oppty to solve the other issue.</description>
		<content:encoded><![CDATA[<p>@mike, this trigger is only for converting a lead.  You&#8217;d have to do a trigger on the insert of a new oppty to solve the other issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://sfdc.arrowpointe.com/2009/02/06/set-defaults-for-opportunity-contact-roles-when-converting/comment-page-1/#comment-65306</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Wed, 02 Mar 2011 00:18:14 +0000</pubDate>
		<guid isPermaLink="false">http://sfdc.arrowpointe.com/?p=587#comment-65306</guid>
		<description>Scott,
   That is a gr8 trigger but when i tried implementing this in my sandbox i came across i doubt how can we set the role to decision maker when i create a new opportunity from the existing account , right now this only works if you convert a lead but i want to update the opp which iam creating from the existing accounts</description>
		<content:encoded><![CDATA[<p>Scott,<br />
   That is a gr8 trigger but when i tried implementing this in my sandbox i came across i doubt how can we set the role to decision maker when i create a new opportunity from the existing account , right now this only works if you convert a lead but i want to update the opp which iam creating from the existing accounts</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gow</title>
		<link>http://sfdc.arrowpointe.com/2009/02/06/set-defaults-for-opportunity-contact-roles-when-converting/comment-page-1/#comment-65258</link>
		<dc:creator>gow</dc:creator>
		<pubDate>Mon, 24 Jan 2011 23:33:49 +0000</pubDate>
		<guid isPermaLink="false">http://sfdc.arrowpointe.com/?p=587#comment-65258</guid>
		<description>How do I simulate creating opportunity from Contact Detail page in my test code. Can anyone help with this?

Thanks</description>
		<content:encoded><![CDATA[<p>How do I simulate creating opportunity from Contact Detail page in my test code. Can anyone help with this?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Hemmeter</title>
		<link>http://sfdc.arrowpointe.com/2009/02/06/set-defaults-for-opportunity-contact-roles-when-converting/comment-page-1/#comment-63263</link>
		<dc:creator>Scott Hemmeter</dc:creator>
		<pubDate>Thu, 23 Sep 2010 00:43:54 +0000</pubDate>
		<guid isPermaLink="false">http://sfdc.arrowpointe.com/?p=587#comment-63263</guid>
		<description>@wen, if you literally copied and pasted from this site, try replacing any &#039; and &quot; characters you copied and re-type them.  This site makes them look nicer, so you might have actually copied a different character from here than you thought.</description>
		<content:encoded><![CDATA[<p>@wen, if you literally copied and pasted from this site, try replacing any &#8216; and &#8221; characters you copied and re-type them.  This site makes them look nicer, so you might have actually copied a different character from here than you thought.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

