<?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: Troubleshooting Email to Case	</title>
	<atom:link href="https://www.jitendrazaa.com/blog/salesforce/troubleshooting-email-to-case/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.jitendrazaa.com/blog/salesforce/troubleshooting-email-to-case/</link>
	<description>AI, Salesforce, ServiceNow &#38; Enterprise Tech Guides</description>
	<lastBuildDate>Fri, 20 Aug 2021 14:00:13 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: Ashish Yadav		</title>
		<link>https://www.jitendrazaa.com/blog/salesforce/troubleshooting-email-to-case/#comment-9313</link>

		<dc:creator><![CDATA[Ashish Yadav]]></dc:creator>
		<pubDate>Fri, 20 Aug 2021 14:00:13 +0000</pubDate>
		<guid isPermaLink="false">http://JitendraZaa.com/blog/?p=3392#comment-9313</guid>

					<description><![CDATA[We’d like to have reported on calculating FCR – 
First Contact Resolution on our cases. The calculation is the percentage of cases resolved with one response to an email.

Hints :

You need to create a custom field in case of the object to store email sent count &#038; keep count of email sent
You need to create report which has fields Case Number, Agent Name (Case owner), Number of Email Response]]></description>
			<content:encoded><![CDATA[<p>We’d like to have reported on calculating FCR –<br />
First Contact Resolution on our cases. The calculation is the percentage of cases resolved with one response to an email.</p>
<p>Hints :</p>
<p>You need to create a custom field in case of the object to store email sent count &amp; keep count of email sent<br />
You need to create report which has fields Case Number, Agent Name (Case owner), Number of Email Response</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Shreya		</title>
		<link>https://www.jitendrazaa.com/blog/salesforce/troubleshooting-email-to-case/#comment-5717</link>

		<dc:creator><![CDATA[Shreya]]></dc:creator>
		<pubDate>Fri, 27 Dec 2019 14:51:43 +0000</pubDate>
		<guid isPermaLink="false">http://JitendraZaa.com/blog/?p=3392#comment-5717</guid>

					<description><![CDATA[Hi.. I am creating an auto case from email to case. After getting the auto created case, I can see there are extra things added in the description of the case. How to prevent this extra description in the auto created cases.]]></description>
			<content:encoded><![CDATA[<p>Hi.. I am creating an auto case from email to case. After getting the auto created case, I can see there are extra things added in the description of the case. How to prevent this extra description in the auto created cases.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ankur koul		</title>
		<link>https://www.jitendrazaa.com/blog/salesforce/troubleshooting-email-to-case/#comment-4659</link>

		<dc:creator><![CDATA[Ankur koul]]></dc:creator>
		<pubDate>Tue, 21 Aug 2018 05:35:29 +0000</pubDate>
		<guid isPermaLink="false">http://JitendraZaa.com/blog/?p=3392#comment-4659</guid>

					<description><![CDATA[can anyone tell me how to populate account name through email to case, i know manually we can. But through email to case, a case will be generated but account name and contact name will be blanked. my requirement is fill the account name if an existing user is sending the email and if new user is sendiing the email then we have to create a account first and auto populate that account. this kind of possible through trigger . but if someone can give more insights would be really helpful to start off]]></description>
			<content:encoded><![CDATA[<p>can anyone tell me how to populate account name through email to case, i know manually we can. But through email to case, a case will be generated but account name and contact name will be blanked. my requirement is fill the account name if an existing user is sending the email and if new user is sendiing the email then we have to create a account first and auto populate that account. this kind of possible through trigger . but if someone can give more insights would be really helpful to start off</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Vijay		</title>
		<link>https://www.jitendrazaa.com/blog/salesforce/troubleshooting-email-to-case/#comment-3245</link>

		<dc:creator><![CDATA[Vijay]]></dc:creator>
		<pubDate>Thu, 16 Jun 2016 17:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://JitendraZaa.com/blog/?p=3392#comment-3245</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.jitendrazaa.com/blog/salesforce/troubleshooting-email-to-case/#comment-3244&quot;&gt;Jitendra Zaa&lt;/a&gt;.

Should I send the code snippet from trigger handler . It looks little untidy as I taking over it from different team to support issues ]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.jitendrazaa.com/blog/salesforce/troubleshooting-email-to-case/#comment-3244">Jitendra Zaa</a>.</p>
<p>Should I send the code snippet from trigger handler . It looks little untidy as I taking over it from different team to support issues </p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jitendra Zaa		</title>
		<link>https://www.jitendrazaa.com/blog/salesforce/troubleshooting-email-to-case/#comment-3244</link>

		<dc:creator><![CDATA[Jitendra Zaa]]></dc:creator>
		<pubDate>Thu, 16 Jun 2016 16:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://JitendraZaa.com/blog/?p=3392#comment-3244</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.jitendrazaa.com/blog/salesforce/troubleshooting-email-to-case/#comment-3243&quot;&gt;Vijay&lt;/a&gt;.

You need to check (debug) all cascading DML as well. From Case trigger, does any code try to update common parents like contact. You can delegate case deletion task to asynchronous Apex]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.jitendrazaa.com/blog/salesforce/troubleshooting-email-to-case/#comment-3243">Vijay</a>.</p>
<p>You need to check (debug) all cascading DML as well. From Case trigger, does any code try to update common parents like contact. You can delegate case deletion task to asynchronous Apex</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Vijay		</title>
		<link>https://www.jitendrazaa.com/blog/salesforce/troubleshooting-email-to-case/#comment-3243</link>

		<dc:creator><![CDATA[Vijay]]></dc:creator>
		<pubDate>Thu, 16 Jun 2016 16:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://JitendraZaa.com/blog/?p=3392#comment-3243</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.jitendrazaa.com/blog/salesforce/troubleshooting-email-to-case/#comment-3242&quot;&gt;Jitendra Zaa&lt;/a&gt;.

Hi Jitendra,

Thanks for acknowledging quickly. To be more specific below are the details.

1.Agent is trying to reply back to Case . And a copy of mail sent to salesforce Id also.
2.Then new email message object gets created with from new case and we are trying to re tag email message and respective attachment to existing case. We have taken this approach as client doesn&#039;t want thread Id to be displayed in Subject.
After insert of new email message from trigger we are deleting new case created which will delete all children object records.
Thanks 
Vijay]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.jitendrazaa.com/blog/salesforce/troubleshooting-email-to-case/#comment-3242">Jitendra Zaa</a>.</p>
<p>Hi Jitendra,</p>
<p>Thanks for acknowledging quickly. To be more specific below are the details.</p>
<p>1.Agent is trying to reply back to Case . And a copy of mail sent to salesforce Id also.<br />
2.Then new email message object gets created with from new case and we are trying to re tag email message and respective attachment to existing case. We have taken this approach as client doesn&#8217;t want thread Id to be displayed in Subject.<br />
After insert of new email message from trigger we are deleting new case created which will delete all children object records.<br />
Thanks<br />
Vijay</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jitendra Zaa		</title>
		<link>https://www.jitendrazaa.com/blog/salesforce/troubleshooting-email-to-case/#comment-3242</link>

		<dc:creator><![CDATA[Jitendra Zaa]]></dc:creator>
		<pubDate>Thu, 16 Jun 2016 16:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://JitendraZaa.com/blog/?p=3392#comment-3242</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.jitendrazaa.com/blog/salesforce/troubleshooting-email-to-case/#comment-3237&quot;&gt;Vijay&lt;/a&gt;.

Hi Vijay,
These kind of error are not because of one functionality but mostly accumulated over the time with lots of customization in Trigger.  Possible reason is Data Skew. Are you having any parent record which has many childs like more than 10k. When you create a case, are you attaching this case to any generic parent record ?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.jitendrazaa.com/blog/salesforce/troubleshooting-email-to-case/#comment-3237">Vijay</a>.</p>
<p>Hi Vijay,<br />
These kind of error are not because of one functionality but mostly accumulated over the time with lots of customization in Trigger.  Possible reason is Data Skew. Are you having any parent record which has many childs like more than 10k. When you create a case, are you attaching this case to any generic parent record ?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Vijay		</title>
		<link>https://www.jitendrazaa.com/blog/salesforce/troubleshooting-email-to-case/#comment-3237</link>

		<dc:creator><![CDATA[Vijay]]></dc:creator>
		<pubDate>Thu, 16 Jun 2016 06:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://JitendraZaa.com/blog/?p=3392#comment-3237</guid>

					<description><![CDATA[Hi
I have a scenario for Email-to-Case functionality where are not using thread id in subject. And there is trigger on Email Message when the agent is replying back to customer we cc&#039;ing salesforce to capture response of the agent also. But it creates new case and in the trigger handler we are creating EmailMessage and Attachment with values from newly email message and tag it to existing case. But there we are running in to concurrent issue and OBJECT_LOCK_ROW issues. Can you please help us with best approach to it]]></description>
			<content:encoded><![CDATA[<p>Hi<br />
I have a scenario for Email-to-Case functionality where are not using thread id in subject. And there is trigger on Email Message when the agent is replying back to customer we cc&#8217;ing salesforce to capture response of the agent also. But it creates new case and in the trigger handler we are creating EmailMessage and Attachment with values from newly email message and tag it to existing case. But there we are running in to concurrent issue and OBJECT_LOCK_ROW issues. Can you please help us with best approach to it</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sangeeta Bishnoi		</title>
		<link>https://www.jitendrazaa.com/blog/salesforce/troubleshooting-email-to-case/#comment-2969</link>

		<dc:creator><![CDATA[Sangeeta Bishnoi]]></dc:creator>
		<pubDate>Sun, 24 Jan 2016 12:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://JitendraZaa.com/blog/?p=3392#comment-2969</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.jitendrazaa.com/blog/salesforce/troubleshooting-email-to-case/#comment-2968&quot;&gt;Jitendra Zaa&lt;/a&gt;.

Thanks for your  reply Jitendra, Could you please explain workflow solution a little more more specially the last line  &quot; You need to perform one time job to calculate unique field on existing cases.&quot; . if i make a unique text field of case subject , then would it work ? And what other conditions i need to give so that it would not stop to create genuine cases .
i think we are getting duplicate case because of both of the conditions , due to automatic replies as well as multiple mails.we are getting duplicate cases for different-2 subjects.
and Could you please also provide the complete code for trigger as what code we need to put at the place of comments (like at line no 16,14,21,23) ..


if(c[0].Subject != null) {
14    //We have a subject, proceed.
15    if(c[0].subject.contains(&#039;[ ref:&#039;)){
16      //No Errors.  Email should be attached to the case.
17    }else{
18      if(check.size() &#062; 3){
19        if((check[0].createddate.addMinutes(5) &#062; System.now()) &#038;&#038; check[0].subject.contains(c[0].subject)){
20          c[0].addError(&#039;Automatic email loop has been terminated&#039;);
21          //Loop Was Killed.
22        }else{
23          //New Case should be created now!
24               }
25      }
26    }]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.jitendrazaa.com/blog/salesforce/troubleshooting-email-to-case/#comment-2968">Jitendra Zaa</a>.</p>
<p>Thanks for your  reply Jitendra, Could you please explain workflow solution a little more more specially the last line  &#8221; You need to perform one time job to calculate unique field on existing cases.&#8221; . if i make a unique text field of case subject , then would it work ? And what other conditions i need to give so that it would not stop to create genuine cases .<br />
i think we are getting duplicate case because of both of the conditions , due to automatic replies as well as multiple mails.we are getting duplicate cases for different-2 subjects.<br />
and Could you please also provide the complete code for trigger as what code we need to put at the place of comments (like at line no 16,14,21,23) ..</p>
<p>if(c[0].Subject != null) {<br />
14    //We have a subject, proceed.<br />
15    if(c[0].subject.contains(&#8216;[ ref:&#8217;)){<br />
16      //No Errors.  Email should be attached to the case.<br />
17    }else{<br />
18      if(check.size() &gt; 3){<br />
19        if((check[0].createddate.addMinutes(5) &gt; System.now()) &amp;&amp; check[0].subject.contains(c[0].subject)){<br />
20          c[0].addError(&#8216;Automatic email loop has been terminated&#8217;);<br />
21          //Loop Was Killed.<br />
22        }else{<br />
23          //New Case should be created now!<br />
24               }<br />
25      }<br />
26    }</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jitendra Zaa		</title>
		<link>https://www.jitendrazaa.com/blog/salesforce/troubleshooting-email-to-case/#comment-2968</link>

		<dc:creator><![CDATA[Jitendra Zaa]]></dc:creator>
		<pubDate>Sun, 24 Jan 2016 02:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://JitendraZaa.com/blog/?p=3392#comment-2968</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.jitendrazaa.com/blog/salesforce/troubleshooting-email-to-case/#comment-2967&quot;&gt;Sangeeta B&lt;/a&gt;.

Duplicate case is becoming because of auto reply or its really multiple emails sent ? Permanent solution would to have a trigger written on Case object. Another &quot;point &#038; Click&quot; solution is to have a Text field marked as &quot;unique&quot; and use workflow rule to populate that field. You need to perform one time job to calculate unique field on existing cases.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.jitendrazaa.com/blog/salesforce/troubleshooting-email-to-case/#comment-2967">Sangeeta B</a>.</p>
<p>Duplicate case is becoming because of auto reply or its really multiple emails sent ? Permanent solution would to have a trigger written on Case object. Another &#8220;point &amp; Click&#8221; solution is to have a Text field marked as &#8220;unique&#8221; and use workflow rule to populate that field. You need to perform one time job to calculate unique field on existing cases.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Minified using Disk

Served from: www.jitendrazaa.com @ 2026-07-17 11:05:12 by W3 Total Cache
-->