<?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: Programmatically Creating Sharing Rules with Apex</title>
	<atom:link href="http://blog.jeffdouglas.com/2009/11/25/programmatically-creating-sharing-rules-with-apex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jeffdouglas.com/2009/11/25/programmatically-creating-sharing-rules-with-apex/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=programmatically-creating-sharing-rules-with-apex</link>
	<description>Get your head out of your #@! and into the clouds!</description>
	<lastBuildDate>Wed, 08 Feb 2012 07:57:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Jeff Douglas</title>
		<link>http://blog.jeffdouglas.com/2009/11/25/programmatically-creating-sharing-rules-with-apex/comment-page-1/#comment-4822</link>
		<dc:creator>Jeff Douglas</dc:creator>
		<pubDate>Sat, 24 Sep 2011 12:24:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/?p=1755#comment-4822</guid>
		<description>@Arish, the sObject you are trying to insert already has an ID. You&#039;ll need to remove that value in order to create a new record.</description>
		<content:encoded><![CDATA[<p>@Arish, the sObject you are trying to insert already has an ID. You&#8217;ll need to remove that value in order to create a new record.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arish</title>
		<link>http://blog.jeffdouglas.com/2009/11/25/programmatically-creating-sharing-rules-with-apex/comment-page-1/#comment-4494</link>
		<dc:creator>Arish</dc:creator>
		<pubDate>Wed, 17 Aug 2011 06:40:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/?p=1755#comment-4494</guid>
		<description>Hi, I have written a similar type of trigger for Contact Sharing. While trying to insert bulk number of contacts throw dataloader i am getting the following error.

INVALID_FIELD_FOR_INSERT_UPDATE, cannot specify Id in an insert call: [Id]. Please share if you have any idea on this issue.</description>
		<content:encoded><![CDATA[<p>Hi, I have written a similar type of trigger for Contact Sharing. While trying to insert bulk number of contacts throw dataloader i am getting the following error.</p>
<p>INVALID_FIELD_FOR_INSERT_UPDATE, cannot specify Id in an insert call: [Id]. Please share if you have any idea on this issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Douglas</title>
		<link>http://blog.jeffdouglas.com/2009/11/25/programmatically-creating-sharing-rules-with-apex/comment-page-1/#comment-1435</link>
		<dc:creator>Jeff Douglas</dc:creator>
		<pubDate>Fri, 06 Aug 2010 10:25:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/?p=1755#comment-1435</guid>
		<description>You may want to check your code again more closely. Not sure why you are trying to change the Contact ID but Salesforce record IDs are not writable.</description>
		<content:encoded><![CDATA[<p>You may want to check your code again more closely. Not sure why you are trying to change the Contact ID but Salesforce record IDs are not writable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sara Chieco</title>
		<link>http://blog.jeffdouglas.com/2009/11/25/programmatically-creating-sharing-rules-with-apex/comment-page-1/#comment-1429</link>
		<dc:creator>Sara Chieco</dc:creator>
		<pubDate>Fri, 06 Aug 2010 05:26:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/?p=1755#comment-1429</guid>
		<description>Hello,

We wrote very similar code (identical in the contact sharing syntax) and it throws a compile error saying the Contact ID is not writeable. Have you also had this error? We were looking on the boards and saw a reference to this code in someone else&#039;s post so I figured I would see if you have any advice on this.

Thanks!
Sara</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>We wrote very similar code (identical in the contact sharing syntax) and it throws a compile error saying the Contact ID is not writeable. Have you also had this error? We were looking on the boards and saw a reference to this code in someone else&#8217;s post so I figured I would see if you have any advice on this.</p>
<p>Thanks!<br />
Sara</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rhonda Ross</title>
		<link>http://blog.jeffdouglas.com/2009/11/25/programmatically-creating-sharing-rules-with-apex/comment-page-1/#comment-855</link>
		<dc:creator>Rhonda Ross</dc:creator>
		<pubDate>Sat, 12 Jun 2010 21:53:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/?p=1755#comment-855</guid>
		<description>That&#039;s for blogging on this and especially for including your test code.  I found some sample triggers for this in Salesforce&#039;s documentation but without the test code.  As a administrator I can often figure out how to tweak code to meet my needs, but I can&#039;t do it from scratch.  Maybe someday.  

I&#039;d love to be able to do this all through clicks instead of code.  Vote for that here
https://sites.secure.force.com/ideaexchange/ideaView?c=09a30000000D9xt&amp;id=08730000000BrUvAAK</description>
		<content:encoded><![CDATA[<p>That&#8217;s for blogging on this and especially for including your test code.  I found some sample triggers for this in Salesforce&#8217;s documentation but without the test code.  As a administrator I can often figure out how to tweak code to meet my needs, but I can&#8217;t do it from scratch.  Maybe someday.  </p>
<p>I&#8217;d love to be able to do this all through clicks instead of code.  Vote for that here<br />
<a href="https://sites.secure.force.com/ideaexchange/ideaView?c=09a30000000D9xt&amp;id=08730000000BrUvAAK" rel="nofollow">https://sites.secure.force.com/ideaexchange/ideaView?c=09a30000000D9xt&amp;id=08730000000BrUvAAK</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Douglas</title>
		<link>http://blog.jeffdouglas.com/2009/11/25/programmatically-creating-sharing-rules-with-apex/comment-page-1/#comment-328</link>
		<dc:creator>Jeff Douglas</dc:creator>
		<pubDate>Thu, 22 Apr 2010 12:32:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/?p=1755#comment-328</guid>
		<description>Unfortunately I am not too familiar with the Outlook connector. I try to stay away from Outlook. You might want to post this on the Salesforce message boards as one of the PMs may pick it up. Good luck.</description>
		<content:encoded><![CDATA[<p>Unfortunately I am not too familiar with the Outlook connector. I try to stay away from Outlook. You might want to post this on the Salesforce message boards as one of the PMs may pick it up. Good luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nigel Folkes</title>
		<link>http://blog.jeffdouglas.com/2009/11/25/programmatically-creating-sharing-rules-with-apex/comment-page-1/#comment-327</link>
		<dc:creator>Nigel Folkes</dc:creator>
		<pubDate>Tue, 20 Apr 2010 15:21:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/?p=1755#comment-327</guid>
		<description>Hi Jeff

I&#039;ve got a customer with many contacts which are shared between a number of the users. They are heavy Outlook users. I have developed a custom object for additional contact sharing to associate other users with contacts and then an trigger on this object to insert a contactshare record based on this information. I assumed that by doing this it would include these shares in the sychronisation for outlook. but with Manual &amp; Edit properties it doesn&#039;t. do you know if there are settings we can set from Apex or via the API which can force the contact to be synchronised to more than one user. Don&#039;t want to use the Accountshare or Account team mechanism as it generates far too many contact shares. Any thoughts ? Thanks. Nigel</description>
		<content:encoded><![CDATA[<p>Hi Jeff</p>
<p>I&#8217;ve got a customer with many contacts which are shared between a number of the users. They are heavy Outlook users. I have developed a custom object for additional contact sharing to associate other users with contacts and then an trigger on this object to insert a contactshare record based on this information. I assumed that by doing this it would include these shares in the sychronisation for outlook. but with Manual &amp; Edit properties it doesn&#8217;t. do you know if there are settings we can set from Apex or via the API which can force the contact to be synchronised to more than one user. Don&#8217;t want to use the Accountshare or Account team mechanism as it generates far too many contact shares. Any thoughts ? Thanks. Nigel</p>
]]></content:encoded>
	</item>
</channel>
</rss>

