<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Winter 14 &#8211; Jitendra Zaa</title>
	<atom:link href="https://www.jitendrazaa.com/blog/tag/winter-14/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.jitendrazaa.com/blog</link>
	<description>AI, Salesforce, ServiceNow &#38; Enterprise Tech Guides</description>
	<lastBuildDate>Wed, 08 Jul 2015 19:29:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
<site xmlns="com-wordpress:feed-additions:1">87744916</site><atom:link rel="search" type="application/opensearchdescription+xml" title="Search Jitendra Zaa" href="https://www.jitendrazaa.com/blog/wp-json/opensearch/1.1/document" />	<item>
		<title>Introduction to Flexible page aka Lightning Page with example</title>
		<link>https://www.jitendrazaa.com/blog/salesforce/introduction-to-flexipage-in-salesforce1-and-deploying-it-using-workbench/</link>
					<comments>https://www.jitendrazaa.com/blog/salesforce/introduction-to-flexipage-in-salesforce1-and-deploying-it-using-workbench/#comments</comments>
		
		<dc:creator><![CDATA[Jitendra]]></dc:creator>
		<pubDate>Sat, 12 Apr 2014 18:48:45 +0000</pubDate>
				<category><![CDATA[Salesforce]]></category>
		<category><![CDATA[Flexipage]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Salesforce 1]]></category>
		<category><![CDATA[Winter 14]]></category>
		<category><![CDATA[Winter15]]></category>
		<category><![CDATA[Workbench]]></category>
		<guid isPermaLink="false">http://www.jitendrazaa.com/blog/?p=3814</guid>

					<description><![CDATA[Display Visualforce page only in Salesforce1 mobile application and not in desktop version]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify;">What you will do if you need to display a visualforce tab only in Salesforce1 app and not in desktop version of Salesforce, not even after clicking on &#8220;+&#8221; link of tab ?</p>
<p style="text-align: justify;">We all are well aware about PageLayout and Visualforce Pages. <a href="https://www.jitendrazaa.com/blog/tag/winter-14/">From API 29 (Winter 14 release)</a>, Salesforce has introduced new functionality in platform named &#8220;FlexiPage&#8221;. Like Pagelayout, We can add Custom components in Flexipage however Flexipage will be visible only in Salesforce1 application in sidebar.</p>
<p style="text-align: justify;">We can use Flexipage to make custom Homepage for some product which will be accessed directly from Salesforce1. One important thing to note here is that, till date (at the time of writing this tutorial) Flexipage can be defined in XML file and then deploying it using Eclipse, <a title="Salesforce ANT Migration tool" href="https://www.jitendrazaa.com/blog/salesforce/salesforce-migration-tool-ant/">Ant Migration tool</a>, workbench or any other migration tool. There is no way to define Flexipage directly in Salesforce using point and click functionality.</p>
<p style="text-align: justify;">Flexi page can contain List View, Recent Items, Report chart, Visualforce page and Global actions.</p>
<p style="text-align: justify;"><strong>Update 8-July</strong> &#8211; <a href="https://developer.salesforce.com/docs/atlas.en-us.salesforce1.meta/salesforce1/flexible_page_about.htm">Flexipage is refered as &#8220;Lightning Page&#8221; in Salesforce documentation</a>.</p>
<p><strong>Step1 :</strong> <strong>Defining XML file for Flexipage containing detail of c</strong><b>omponents</b></p>
<p>Filename &#8211; <strong>&#8220;AccountFlexi.flexipage&#8221;<span id="more-3814"></span></strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;FlexiPage xmlns=&quot;http://soap.sforce.com/2006/04/metadata&quot;&gt;
  &lt;flexiPageRegions&gt;
    &lt;componentInstances&gt;
      &lt;componentInstanceProperties&gt;
        &lt;name&gt;entityName&lt;/name&gt;
        &lt;value&gt;Account&lt;/value&gt;
      &lt;/componentInstanceProperties&gt;
      &lt;componentInstanceProperties&gt;
        &lt;name&gt;filterName&lt;/name&gt;
        &lt;value&gt;AllAccounts&lt;/value&gt;
      &lt;/componentInstanceProperties&gt;
      &lt;componentName&gt;flexipage:filterListCard&lt;/componentName&gt;
    &lt;/componentInstances&gt;
    &lt;name&gt;main&lt;/name&gt;
  &lt;/flexiPageRegions&gt;
  &lt;quickActionList&gt;
    &lt;quickActionListItems&gt;
      &lt;quickActionName&gt;NewAccount&lt;/quickActionName&gt;
    &lt;/quickActionListItems&gt;
  &lt;/quickActionList&gt;
  &lt;masterLabel&gt;My new App&lt;/masterLabel&gt;
&lt;/FlexiPage&gt;
</pre>
<p>XML file for Flexipage must needs to have &#8220;flexipage&#8221; extension and should be saved in &#8220;flexipages&#8221; folder.</p>
<p><strong>Components supported in Lightning Page / Flexi Page</strong></p>
<ul>
<li><strong>flexipage:filterListCard</strong>
<ul>
<li>Points to a list view and displays the first few records from that view</li>
</ul>
</li>
<li><strong>flexipage:recentItems</strong>
<ul>
<li>A list of most recently used items that supports these objects, based on the specified properties</li>
</ul>
</li>
<li><strong>flexipage:reportChart</strong>
<ul>
<li>Use the Report Chart component to include a chart from a report in your Lightning Page</li>
</ul>
</li>
<li><strong>flexipage:richText</strong>
<ul>
<li>Use the Rich Text component to add text and simple HTML markup to your Lightning Page</li>
</ul>
</li>
<li><strong>flexipage:visualforcePage</strong>
<ul>
<li>Use the Visualforce Page component to include a Visualforce page in your Lightning Page</li>
</ul>
</li>
</ul>
<p><strong>Note :</strong></p>
<ul>
<li style="text-align: justify;">For List View Supported objects include standard objects (Account, Campaign, Case, CollaborationGroup, Contact, Contract, Lead, LiveChatTranscript, Opportunity), custom objects.</li>
<li style="text-align: justify;">Recent Items are available only for Custom Objects.</li>
</ul>
<p><strong>Step 2 : Create package.xml</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;Package xmlns=&quot;http://soap.sforce.com/2006/04/metadata&quot;&gt;
  &lt;types&gt;
    &lt;members&gt;AccountFlexi&lt;/members&gt;
    &lt;name&gt;FlexiPage&lt;/name&gt;
  &lt;/types&gt;
  &lt;version&gt;29.0&lt;/version&gt;
&lt;/Package&gt;
</pre>
<p><strong>Step3 : Deploying Flexipage</strong></p>
<p style="text-align: justify;">Create Zip file containing above both XML files. <a title="Deploying Flexipage" href="https://www.jitendrazaa.com/blog/wp-content/uploads/2014/04/Deploy-FlexiPage.zip">you can download it from here also</a>.</p>
<p style="text-align: justify;">We need to deploy this zip file into Salesforce and for that, I am going to use <a title="Workbench" href="https://workbench.developerforce.com/login.php?startUrl=%2FmetadataDeploy.php" rel="nofollow">Workbench</a>. In Workbench, navigate to deploy, select your zip file and select &#8220;Single package&#8221;. Once you have successfully deployed above zip file, you will see below page conforming Success message.</p>
<figure id="attachment_3820" aria-describedby="caption-attachment-3820" style="width: 764px" class="wp-caption alignnone"><a href="https://i0.wp.com/www.jitendrazaa.com/blog/wp-content/uploads/2014/04/Deploy-using-Workbench-Tool.png?ssl=1"><img data-recalc-dims="1" fetchpriority="high" decoding="async" class="size-full wp-image-3820" src="https://i0.wp.com/www.jitendrazaa.com/blog/wp-content/uploads/2014/04/Deploy-using-Workbench-Tool.png?resize=764%2C630&#038;ssl=1" alt="Deploy Flexipage using Workbench Tool" width="764" height="630" srcset="https://i0.wp.com/www.jitendrazaa.com/blog/wp-content/uploads/2014/04/Deploy-using-Workbench-Tool.png?w=764&amp;ssl=1 764w, https://i0.wp.com/www.jitendrazaa.com/blog/wp-content/uploads/2014/04/Deploy-using-Workbench-Tool.png?resize=300%2C247&amp;ssl=1 300w, https://i0.wp.com/www.jitendrazaa.com/blog/wp-content/uploads/2014/04/Deploy-using-Workbench-Tool.png?resize=624%2C514&amp;ssl=1 624w" sizes="(max-width: 764px) 100vw, 764px" /></a><figcaption id="caption-attachment-3820" class="wp-caption-text">Deploy Flexipage using Workbench Tool</figcaption></figure>
<p><strong>Step4 : Creating Tab for Flexipage</strong></p>
<p style="text-align: justify;">Once deployment is done, we can create a new Tab for flexipage. Navigate to create new Tab and at bottom of page you will see option to select new tab for flexipage as shown in below image.</p>
<figure id="attachment_3821" aria-describedby="caption-attachment-3821" style="width: 625px" class="wp-caption alignnone"><a href="https://i0.wp.com/www.jitendrazaa.com/blog/wp-content/uploads/2014/04/Creating-Flexipage-Tabs.png?ssl=1"><img data-recalc-dims="1" decoding="async" class="size-large wp-image-3821" src="https://i0.wp.com/www.jitendrazaa.com/blog/wp-content/uploads/2014/04/Creating-Flexipage-Tabs.png?resize=625%2C151&#038;ssl=1" alt="Creating Flexipage Tabs" width="625" height="151" srcset="https://i0.wp.com/www.jitendrazaa.com/blog/wp-content/uploads/2014/04/Creating-Flexipage-Tabs.png?resize=1024%2C249&amp;ssl=1 1024w, https://i0.wp.com/www.jitendrazaa.com/blog/wp-content/uploads/2014/04/Creating-Flexipage-Tabs.png?resize=300%2C73&amp;ssl=1 300w, https://i0.wp.com/www.jitendrazaa.com/blog/wp-content/uploads/2014/04/Creating-Flexipage-Tabs.png?resize=624%2C152&amp;ssl=1 624w, https://i0.wp.com/www.jitendrazaa.com/blog/wp-content/uploads/2014/04/Creating-Flexipage-Tabs.png?w=1222&amp;ssl=1 1222w" sizes="(max-width: 625px) 100vw, 625px" /></a><figcaption id="caption-attachment-3821" class="wp-caption-text">Creating Flexipage Tabs</figcaption></figure>
<p style="text-align: justify;">Now, go ahead and create a new tab by providing all necessary information. You should be able to see your flexipage in next screen which you just deployed in step 3.</p>
<p><strong>Step 5 : Configuring Navigation menu in Salesforce1</strong></p>
<p>After creating flexipage tab, We have to tell Salesforce1 engine to display this tab in navigation menu of salesforce 1.</p>
<p>Navigate to &#8220;Setup | Administration Setup | Mobile Administration | Mobile Navigation&#8221; and add Flexipage to navigation.</p>
<p style="text-align: justify;"><strong>Step 6 : Testing Flexipage / Flexipage in Action</strong><br />
Now login to Salesforce application from your mobile phone by launching Salesforce1 app or you can also launch it from your browser by navigating to this address &#8220;https://YOURINSTANCE.salesforce.com/one/one.app&#8221;.</p>
<figure id="attachment_3823" aria-describedby="caption-attachment-3823" style="width: 570px" class="wp-caption alignnone"><a href="https://i0.wp.com/www.jitendrazaa.com/blog/wp-content/uploads/2014/04/Access-Salesforce1-from-Browser.png?ssl=1"><img data-recalc-dims="1" decoding="async" class="size-full wp-image-3823" src="https://i0.wp.com/www.jitendrazaa.com/blog/wp-content/uploads/2014/04/Access-Salesforce1-from-Browser.png?resize=570%2C248&#038;ssl=1" alt="Access Salesforce1 from Browser" width="570" height="248" srcset="https://i0.wp.com/www.jitendrazaa.com/blog/wp-content/uploads/2014/04/Access-Salesforce1-from-Browser.png?w=570&amp;ssl=1 570w, https://i0.wp.com/www.jitendrazaa.com/blog/wp-content/uploads/2014/04/Access-Salesforce1-from-Browser.png?resize=300%2C130&amp;ssl=1 300w" sizes="(max-width: 570px) 100vw, 570px" /></a><figcaption id="caption-attachment-3823" class="wp-caption-text">Access Salesforce1 from Browser</figcaption></figure>
<figure id="attachment_3824" aria-describedby="caption-attachment-3824" style="width: 270px" class="wp-caption alignnone"><a href="https://i0.wp.com/www.jitendrazaa.com/blog/wp-content/uploads/2014/04/Flexipage-in-Action.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" class="size-full wp-image-3824" src="https://i0.wp.com/www.jitendrazaa.com/blog/wp-content/uploads/2014/04/Flexipage-in-Action.png?resize=270%2C480&#038;ssl=1" alt="Flexipage in Action" width="270" height="480" /></a><figcaption id="caption-attachment-3824" class="wp-caption-text">Flexipage in Action</figcaption></figure>
<figure id="attachment_3825" aria-describedby="caption-attachment-3825" style="width: 270px" class="wp-caption alignnone"><a href="https://i0.wp.com/www.jitendrazaa.com/blog/wp-content/uploads/2014/04/Flexipage-Components-in-Salesforce1.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" class="size-full wp-image-3825" src="https://i0.wp.com/www.jitendrazaa.com/blog/wp-content/uploads/2014/04/Flexipage-Components-in-Salesforce1.png?resize=270%2C480&#038;ssl=1" alt="Flexipage Components in Salesforce1" width="270" height="480" srcset="https://i0.wp.com/www.jitendrazaa.com/blog/wp-content/uploads/2014/04/Flexipage-Components-in-Salesforce1.png?w=270&amp;ssl=1 270w, https://i0.wp.com/www.jitendrazaa.com/blog/wp-content/uploads/2014/04/Flexipage-Components-in-Salesforce1.png?resize=168%2C300&amp;ssl=1 168w" sizes="auto, (max-width: 270px) 100vw, 270px" /></a><figcaption id="caption-attachment-3825" class="wp-caption-text">Flexipage Components in Salesforce1</figcaption></figure>
<p>please provide feedback on this post if there is chance of making it better.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.jitendrazaa.com/blog/salesforce/introduction-to-flexipage-in-salesforce1-and-deploying-it-using-workbench/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3814</post-id>	</item>
		<item>
		<title>Import User Quotas in Quantity (Unit) for Collaborative Forecasting</title>
		<link>https://www.jitendrazaa.com/blog/salesforce/import-user-quotas-in-quantity-unit-for-collaborative-forecasting/</link>
					<comments>https://www.jitendrazaa.com/blog/salesforce/import-user-quotas-in-quantity-unit-for-collaborative-forecasting/#respond</comments>
		
		<dc:creator><![CDATA[Jitendra]]></dc:creator>
		<pubDate>Thu, 07 Nov 2013 06:33:03 +0000</pubDate>
				<category><![CDATA[Salesforce]]></category>
		<category><![CDATA[Collaborative forecasting]]></category>
		<category><![CDATA[DataLoader]]></category>
		<category><![CDATA[Forecast]]></category>
		<category><![CDATA[Winter 14]]></category>
		<guid isPermaLink="false">http://JitendraZaa.com/blog/?p=3586</guid>

					<description><![CDATA[In Previous article we have seen that how to import Quota in Amount (Revenue) for Collaborative forecasting.  I got many request on how to upload Quota in Units, as in Forecasting tab you can see that there is option to see Forecast in Unit or Amount. If we switch from Revenue to Quantity the Quota [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a title="Import User Quotas in Amount for Collaborative forecasting" href="https://jitendrazaa.com/blog/salesforce/import-user-quotas-for-collaborative-forecasting/">In Previous article</a> we have seen that how to import Quota in Amount (Revenue) for Collaborative forecasting.  I got many request on how to upload Quota in Units, as in Forecasting tab you can see that there is option to see Forecast in Unit or Amount.</p>
<figure id="attachment_3588" aria-describedby="caption-attachment-3588" style="width: 353px" class="wp-caption aligncenter"><a href="https://i0.wp.com/jitendrazaa.com/blog/wp-content/uploads/2013/11/Salesforce-Display-Forecast-as-Quantity-or-Revenue.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" class="size-full wp-image-3588" alt="Salesforce Display Forecast as Quantity or Revenue" src="https://i0.wp.com/jitendrazaa.com/blog/wp-content/uploads/2013/11/Salesforce-Display-Forecast-as-Quantity-or-Revenue.png?resize=353%2C246&#038;ssl=1" width="353" height="246" /></a><figcaption id="caption-attachment-3588" class="wp-caption-text">Salesforce Display Forecast as Quantity or Revenue</figcaption></figure>
<p>If we switch from Revenue to Quantity the Quota of user will show blank user. In this article we will upload User Quota in Quantity.</p>
<p>After Winter 14 release also salesforce has not provided any Out of the box tool to upload quota from User Interface. So in this article also, we will depend on Dataloader.<span id="more-3586"></span></p>
<p><strong>Important Note : </strong></p>
<ol>
<li>If you want to upload Quota in Quantity, version of Dataloader must be above 28. In this article, i have used DataLoader version 29.</li>
<li>At one time, we can either insert Quota in Amount or Quantity.</li>
<li>If you want to use field Product Family, you must enable &#8220;Forecasting for Product Family&#8221;</li>
</ol>
<p>As seen in previous article, Object used for upload Quota is &#8220;ForecastingQuota&#8221; which will be visible in Dataloader, if we select &#8220;Show all Salesforce Object&#8221;.</p>
<figure id="attachment_3203" aria-describedby="caption-attachment-3203" style="width: 709px" class="wp-caption aligncenter"><a href="https://i0.wp.com/jitendrazaa.com/blog/wp-content/uploads/2013/02/Import-Quota-Using-DataLoader.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" class="size-full wp-image-3203" alt="Import Quota Using DataLoader" src="https://i0.wp.com/jitendrazaa.com/blog/wp-content/uploads/2013/02/Import-Quota-Using-DataLoader.png?resize=709%2C630&#038;ssl=1" width="709" height="630" /></a><figcaption id="caption-attachment-3203" class="wp-caption-text">Import Quota Using DataLoader for Forecast 3</figcaption></figure>
<p>You will find below fields available for mapping in Dataloader :</p>
<ol>
<li>Start Date (Quota is for Which month ?)</li>
<li>Currency ISO Code (ISO Code of Currency of Amount)</li>
<li>Quota Amount (Quota of users in Amount)</li>
<li>Quota OwnerId (Quota belongs to Which User ?)</li>
<li>Product Family (If Forecasting for Product (Winter 14) is enabled then you can use it)</li>
<li>Quota Quantity (Quota of users in Unit)</li>
</ol>
<p>We have to create CSV file, map field and insert. I hope this tutorial will explain all you need to upload Quota in Quantity.</p>
<figure id="attachment_3592" aria-describedby="caption-attachment-3592" style="width: 789px" class="wp-caption aligncenter"><a href="https://i0.wp.com/jitendrazaa.com/blog/wp-content/uploads/2013/11/Uploading-Forecast-Quota-in-Unit.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" class="size-full wp-image-3592" alt="Uploading Forecast Quota in Unit" src="https://i0.wp.com/jitendrazaa.com/blog/wp-content/uploads/2013/11/Uploading-Forecast-Quota-in-Unit.png?resize=789%2C310&#038;ssl=1" width="789" height="310" /></a><figcaption id="caption-attachment-3592" class="wp-caption-text">Uploading Forecast Quota in Unit</figcaption></figure>
<p>Please find below Sample csv files to upload Quota in Collaborative Forecasting :</p>
<ol>
<li><a href="https://jitendrazaa.com/blog/wp-content/uploads/2013/11/ForecastQuota-in-Amount.csv">Sample CSV FIle for ForecastQuota in Amount</a></li>
<li><a href="https://jitendrazaa.com/blog/wp-content/uploads/2013/11/ForecastQuota-in-Unit-with-Product-Family-and-Unit.csv">Sample CSV file for ForecastQuota in Unit with Product Family</a></li>
<li><a href="https://jitendrazaa.com/blog/wp-content/uploads/2013/11/ForecastQuota-in-Unit-Without-Product-Family.csv">Sample CSV File for ForecastQuota in Unit Without Product Family</a></li>
</ol>
]]></content:encoded>
					
					<wfw:commentRss>https://www.jitendrazaa.com/blog/salesforce/import-user-quotas-in-quantity-unit-for-collaborative-forecasting/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3586</post-id>	</item>
		<item>
		<title>Apex, Visualforce, Data Loader and SOQL Interview Question – Part 17</title>
		<link>https://www.jitendrazaa.com/blog/salesforce/apex-visualforce-data-loader-and-soql-interview-question-part-17/</link>
					<comments>https://www.jitendrazaa.com/blog/salesforce/apex-visualforce-data-loader-and-soql-interview-question-part-17/#comments</comments>
		
		<dc:creator><![CDATA[Jitendra]]></dc:creator>
		<pubDate>Thu, 10 Oct 2013 00:45:04 +0000</pubDate>
				<category><![CDATA[Apex]]></category>
		<category><![CDATA[Salesforce]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[DataLoader]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Field Level Security]]></category>
		<category><![CDATA[FLS]]></category>
		<category><![CDATA[Google Docs]]></category>
		<category><![CDATA[Interview Questions]]></category>
		<category><![CDATA[Person Account]]></category>
		<category><![CDATA[Report]]></category>
		<category><![CDATA[SOQL]]></category>
		<category><![CDATA[Standard Report Visibility]]></category>
		<category><![CDATA[Winter 14]]></category>
		<guid isPermaLink="false">http://JitendraZaa.com/blog/?p=3325</guid>

					<description><![CDATA[161 : Sometimes while deleting record it gives error &#8220;Object cannot be Deleted&#8221;. What is the reason for this kind of error ? Ans : This is generic error message prompted by Salesforce many times, which is not well informative. To get informative message, we can try to delete same record in &#8220;Developer Console&#8221;. In [&#8230;]]]></description>
										<content:encoded><![CDATA[<div class="intrinsic-container"><iframe loading="lazy" src="https://jitendrazaa.com/blog/SFDCInterviewList.php?num=17" width="300" height="150" allowfullscreen="allowfullscreen"> </iframe></div>
<p style="text-align: justify;"><strong>161 : Sometimes while deleting record it gives error &#8220;Object cannot be Deleted&#8221;. What is the reason for this kind of error ?</strong><br />
<strong> Ans :</strong><br />
This is generic error message prompted by Salesforce many times, which is not well informative. To get informative message, we can try to delete same record in <strong>&#8220;Developer Console&#8221;</strong>. In Developer Console Debug log, we will get exact error message.<br />
<strong>Example :</strong> Lets say there is one record which is parent of more than 2000 records and grand parent of 5000 records. In such scenario from developer console it gives error something like <span style="text-decoration: underline;">&#8220;record cannot be deleted because it has many associated objects&#8221;</span> However in User Interface, it will just display that <span style="text-decoration: underline;">&#8220;Object cannot be deleted.</span>&#8220;</p>
<hr />
<p style="text-align: justify;"><strong>162 : Why are Visualforce pages served from a different domain?</strong><br />
<strong> Ans :</strong><br />
If we see carefully, all our Visualforce pages are served like &#8220;c.YOURSERVER.visual.force.com/apex/YOURPAGENAME&#8221; ,<br />
And because of this most of time we run into <span style="text-decoration: underline;">Same-Origin Policy error</span> in Javascripyt if we try to access parent page from Iframe. Following reason is explained by one of the evangelist of Salesforce:</p>
<p style="text-align: justify;">&#8220;The move to separate domains has one very specific purpose: leverage the browser security model (same domain policy) to protect our customers and the salesforce.com service from cross site scripting and cross site request forgery attacks.</p>
<p style="text-align: justify;">Moving to the serving pages from separate domains is a critical component of our ongoing commitment to insure the highest level of security and availability for everyone.</p>
<p style="text-align: justify;">In the world where everything is served from the same domain any custom page that you visit had full access to any other page in your org and also any page served from salesforce.com itself. This included potentially malicious code that was installed as part of a force.com package.&#8221;<span id="more-3325"></span></p>
<hr />
<p><strong>163 : In below code snippet , What is your observation and what is going wrong ?</strong></p>
<pre class="brush: java; title: ; notranslate">
trigger TestBeforeDelete on Lead (before Delete) {

        for(Lead l : Trigger.Old)
        {
            l.addError('error');
        }

        String msgBody = 'Test Email';
        String Subject = 'Test from Cogni Force on Lead';
        Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
        String&#x5B;] toAddresses = new String&#x5B;] {'abc@gmail.com'};
        mail.setToAddresses(toAddresses);
        mail.setReplyTo('abc@gmail.com');
        mail.setSenderDisplayName('Cogniforce Test Simulator');
        mail.setSubject(Subject);
        mail.setPlainTextBody(msgBody);
        mail.setHTMLBody(msgBody);
        Messaging.sendEmail(new Messaging.SingleEmailMessage&#x5B;] { mail });
}
</pre>
<p><strong>Ans :</strong><br />
It will not send any email. Because &#8220;adderror&#8221; prevents all transactions from committing including emails.</p>
<hr />
<p><strong>164. Can we mass delete reports using Apex (Anonymous Apex) ?</strong><br />
<strong> Ans :</strong><br />
Salesforce has not exposed any API for Reports. So best way is :</p>
<ol>
<li>Move all reports needs to delete in new folder.</li>
<li>Inform everyone that reports will be deleted after some time may be 30 days.</li>
<li>Import your reports folder in Eclipse including all reports to be deleted and then delete the the reports folder in eclipse. It will delete all the reports at once.</li>
</ol>
<hr />
<p><strong>165. While creating Dynamic SOQL, which involves Datetime gives &#8221; no viable alternative at character &#8216;&lt;EOF&gt;&#8217; &#8221; error.<br />
OR<br />
value of filter criterion for field &#8216;CreatedDate&#8217; must be of type dateTime and should not be enclosed in quotes<br />
OR<br />
How to use Datetime in Dynamic SOQL Query in Salesforce ?<br />
</strong><br />
<strong> Ans :</strong><br />
This error is because of wrong construction of Dynamic Query with Datetime. following code snippet will give idea on how to construct dynamic query for Datetime ?</p>
<pre class="brush: java; title: ; notranslate">
//format the datetime to make it Dynamic Soql ready
String formatedDt = cutOffDateTime.format('yyyy-MM-dd'T'HH:mm:ss'Z'');
String sql = 'SELECT  a.Id  FROM  Agents_Answer__c a    WHERE  a.Agents_Test_Result__r.Agent_Name__r.IsActive__c = false AND  LastModifiedDate &lt; '+ formatedDt ;
</pre>
<p>Where, &#8220;cutOffDateTime&#8221; is variable of datetime type.</p>
<hr />
<p><strong>166. How you can use Datetime field as a criteria in SOQL Query ?<br />
Ans : </strong><br />
We cannot use Datetime as condition in Where Clause in between single Quotes.<br />
You can do something like this ,</p>
<blockquote><p>WHERE CreatedDate &gt; 2005-10-08T00:00:00Z</p></blockquote>
<p>Or, you can also use Date Literals like</p>
<blockquote><p>WHERE CreatedDate &gt; YESTERDAY</p></blockquote>
<p><a title="Salesforce SOQL Date time Literal" href="http://www.salesforce.com/us/developer/docs/soql_sosl/Content/sforce_api_calls_soql_select_dateformats.htm" target="_blank">For more information on date formats and more literal values, check this URL.</a></p>
<hr />
<p style="text-align: justify;"><strong>167. After Data Export using DataLoader, Some time it appears that data is on New Line (Carriage Return) when we open CSV file in Microsoft Excel. For example , Address Data separated on different lines. How can we override this problem ?</strong><br />
<strong> Ans</strong> :<br />
Excel does all sorts of &#8220;useful&#8221; things when it opens a CSV file. It will re-format dates, strip leading zeros, corrupt record IDs (if you have them in your report), and as explained it will also break line. Best way as per my experience till date is, <strong>Upload document to Google Drive</strong>. Export document back from Google drive as Excel.</p>
<p style="text-align: justify;">Please post comment in this article if you know any other working way.</p>
<hr />
<p style="text-align: justify;"><strong>168. How do you import Converted Lead into Salesforce from Legacy System ?</strong><br />
<strong> Ans :</strong><br />
Fields we need for importing converted leads are &#8220;<strong>ISCONVERTED</strong>&#8221; , &#8220;<strong>CONVERTEDCONTACTID</strong>&#8221; , &#8220;<strong>CONVERTEDOPPORTUNITYID</strong>&#8221; and &#8220;<strong>CONVERTEDACCOUNTID</strong>&#8220;.<br />
<strong>Step 1 :</strong> As above fields are not editable, we have to contact Salesforce Support to enable Audit fields. Enabling Audit fields means we can edit few Readonly fields like created date and above lead fields.<br />
<strong>Step 2 :</strong> Import Account, Contact and Opportunity from Legacy system to Salesforce.<br />
<strong>Step 3 :</strong> If you imported account, contact and opportunity in Step 2, Salesforce automatically generates Unique ID. We need that unique Id to insert Converted Lead. So Export Account, Contact and Opportunity, which is inserted in Step 2 from legacy System.<br />
<strong>Step 4 :</strong> Create CSV File with All lead information with ISCONVERTED=TRUE and CONVERTEDCONTACTID, CONVERTEDOPPORTUNITYID, CONVERTEDACCOUNTID. CONVERTEDCONTACTID, CONVERTEDOPPORTUNITYID and CONVERTEDACCOUNTID should correspond to Ids generated by Salesforce for Contact, Opportunity and Account which will be related to converted lead.<br />
<strong>Step 5 :</strong> Once CSV is properly created with all required Data, Insert it using DataLoader.</p>
<p style="text-align: justify;"><strong>Note :</strong> We cannot convert existing lead using this process. Leads must be inserted with these four fields. If you try to update lead it will not give you option to edit above fields.</p>
<hr />
<p><strong>169. How to setup Field Level Security (FLS) for Person Account Fields.</strong><br />
<strong> OR</strong><br />
<strong> Why I am not able to find list of Person Account fields in Field Level Security (FLS) settings when navigated to fields on Account Object.</strong><br />
<strong> Ans :</strong></p>
<p style="text-align: justify;">Field Level Security (FLS) of Person Account fields ar controlled by Contact Fields. So, if you want to setup FLS of Person Account Fields navigate to fields of Contact and it will be reflected on Person Account.</p>
<hr />
<p style="text-align: justify;"><strong>170. In Partner Community, external user is having appropriate OWD and Profile Settings for Opportunity or consider any other Object. However they are getting insufficient privilege access, what might be cause of this error ?</strong><br />
<strong> Ans :</strong></p>
<ul>
<li style="text-align: justify;">Check External User has all FLS for fields used in Report Filters</li>
<li style="text-align: justify;">After Winter 14, If Community enabled, there will be two kind of OWD. External and Internal means what information should be visible to internal and external users. Also , there will be new setting named &#8220;<strong>Standard Report Visibility</strong>&#8220;. If it is checked user can see reports based on Standard report type even though they don&#8217;t have proper OWD and may expose sensitive information about internal user to external users (for example : Internal users role). If external user is getting an error whole running the report this setting may be one of the cause.</li>
</ul>
<div class="intrinsic-container"><iframe loading="lazy" src="https://jitendrazaa.com/blog/SFDCInterviewList.php?num=17" width="300" height="150" allowfullscreen="allowfullscreen"> </iframe></div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.jitendrazaa.com/blog/salesforce/apex-visualforce-data-loader-and-soql-interview-question-part-17/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3325</post-id>	</item>
		<item>
		<title>Salesforce Winter 14 &#8211; New Features</title>
		<link>https://www.jitendrazaa.com/blog/salesforce/salesforce-winter-14-new-features/</link>
					<comments>https://www.jitendrazaa.com/blog/salesforce/salesforce-winter-14-new-features/#comments</comments>
		
		<dc:creator><![CDATA[Jitendra]]></dc:creator>
		<pubDate>Tue, 27 Aug 2013 08:32:19 +0000</pubDate>
				<category><![CDATA[Salesforce]]></category>
		<category><![CDATA[Release]]></category>
		<category><![CDATA[Winter 14]]></category>
		<guid isPermaLink="false">http://JitendraZaa.com/blog/?p=3427</guid>

					<description><![CDATA[Major Area of Release: Developer Console Canvas HTML5 Support in Visualforce Deployment related features like improved deployment Monitoring New Database methods to get records deleted , updated in specific time Renaming &#8220;Service Cloud Console&#8220; is renamed to &#8220;Salesforce Console for Service&#8220; &#8220;Configuration Only&#8220; sandbox renamed to &#8220;Developer Pro&#8220; &#8220;Agent Configuration&#8220; renamed to &#8220;Live Agent Configuration&#8220; [&#8230;]]]></description>
										<content:encoded><![CDATA[<figure id="attachment_3433" aria-describedby="caption-attachment-3433" style="width: 272px" class="wp-caption aligncenter"><a href="https://i0.wp.com/jitendrazaa.com/blog/wp-content/uploads/2013/08/Win-14-Logo.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" class=" wp-image-3433 " alt="Salesforce Winter 14" src="https://i0.wp.com/jitendrazaa.com/blog/wp-content/uploads/2013/08/Win-14-Logo.png?resize=272%2C273&#038;ssl=1" width="272" height="273" /></a><figcaption id="caption-attachment-3433" class="wp-caption-text">Salesforce Winter 14</figcaption></figure>
<p><strong>Major Area of Release:</strong></p>
<ul>
<li>Developer Console</li>
<li>Canvas</li>
<li>HTML5 Support in Visualforce</li>
<li>Deployment related features like improved deployment Monitoring</li>
<li>New Database methods to get records deleted , updated in specific time</li>
</ul>
<p><strong>Renaming</strong></p>
<ul>
<li>&#8220;<strong>Service Cloud Console</strong>&#8220; is renamed to &#8220;<strong>Salesforce Console for Service</strong>&#8220;</li>
<li>&#8220;<strong>Configuration Only</strong>&#8220; sandbox renamed to &#8220;<strong>Developer Pro</strong>&#8220;</li>
<li>&#8220;<strong>Agent Configuration</strong>&#8220; renamed to &#8220;<strong>Live Agent Configuration</strong>&#8220;</li>
</ul>
<p><span style="color: #ff0000;"><strong>1. Add Report Charts in Detail Page Layout of Standard or Custom Object</strong></span></p>
<p>Starting from Winter 14, Now we have one more option in Page Layout Editor, which is &#8220;Report Charts&#8221;. Instead of Visiting Dashboard and Report we can see chart right in Detail page of record.</p>
<figure id="attachment_3428" aria-describedby="caption-attachment-3428" style="width: 624px" class="wp-caption aligncenter"><a href="https://i0.wp.com/jitendrazaa.com/blog/wp-content/uploads/2013/08/Charts-in-Detail-Page.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" class="size-full wp-image-3428" alt="Charts in Detail Page" src="https://i0.wp.com/jitendrazaa.com/blog/wp-content/uploads/2013/08/Charts-in-Detail-Page.png?resize=624%2C137&#038;ssl=1" width="624" height="137" /></a><figcaption id="caption-attachment-3428" class="wp-caption-text">Charts in Detail Page</figcaption></figure>
<p><span style="text-decoration: underline;">Considerations:</span></p>
<ul>
<li>You can have two report charts only per page.</li>
<li>Report chart can only be added from enhanced page layout and is not supported in mini Console or original page layout editor.</li>
</ul>
<p><strong>2. Get Report Data as JSON – Analytics API</strong><br />
This is REST based API which will return data of report as JSON. This will revolutionize the way we access and visualize Salesforce data.</p>
<p><span style="color: #ff0000;"><strong>3. Search Metadata</strong></span><br />
One of my favorite features is searching Metadata. We have Global search which will search any record. But what if you have more than 200 Workflow rules, Email templates and struggling to find out what you need? You must be thinking for search feature which can search your setup, and this feature is available from Winter 14.<span id="more-3427"></span></p>
<p><strong>4. Static Resource Editors just inside Developer Console</strong><br />
Developer Console editor now supports JavaScript, XML, CSS and plain text. You can create these file in Static Resource just from Developer Console.</p>
<p><span style="color: #ff0000;"><strong>5. OFFSET in SubQuery – Pilot</strong></span><br />
OffSet is very useful clause in SOQL for pagination however it can only be used in upper level query. From Winter 14 (Pilot) it can be used in sub query also.</p>
<pre class="brush: sql; title: ; notranslate">
SELECT Name, Id
(
SELECT Name FROM Opportunities LIMIT 10 OFFSET 2
)
FROM Account
ORDER BY NAME
LIMIT 1
</pre>
<p><strong>6. Lookup field search</strong><br />
Till now Lookup field can only search Name field however now we have option to &#8220;search All&#8221; Fields.</p>
<p><strong>7. Sales Console</strong><br />
It helps you quickly contact leads, access companies, and identify key contacts – all in dashboard like interface.</p>
<figure id="attachment_3429" aria-describedby="caption-attachment-3429" style="width: 623px" class="wp-caption aligncenter"><a href="https://i0.wp.com/jitendrazaa.com/blog/wp-content/uploads/2013/08/Sales-Cloud.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" class="size-full wp-image-3429" alt="Sales Cloud in Salesforce" src="https://i0.wp.com/jitendrazaa.com/blog/wp-content/uploads/2013/08/Sales-Cloud.png?resize=623%2C379&#038;ssl=1" width="623" height="379" /></a><figcaption id="caption-attachment-3429" class="wp-caption-text">Sales Cloud in Salesforce</figcaption></figure>
<p><strong>8. Freeze User Accounts</strong><br />
We can now temporarily suspend a user account that requires more work to deactivate.</p>
<p><strong>9. Sharing rule on User</strong></p>
<p>You might be thinking that what Is use of having OWD and sharing rule on User ? As chatter is getting adapted by everyone, there may be scenario that few profiles should be private like of CEO. So in those case we can create sharing rule on User records.</p>
<p><span style="color: #ff0000;"><strong>10. Manager Group</strong></span><br />
When it comes to sharing we know OWD, Role and Sharing rule. Now start assuming one more level which is &#8220;Manager Group&#8221;. The role hierarchy controls the level of visibility that users have into your organizations data. With Winter&#8217;14, you can use manager groups to share records with your management chain, instead of all managers in the same role based on the role hierarchy.</p>
<figure id="attachment_3430" aria-describedby="caption-attachment-3430" style="width: 274px" class="wp-caption aligncenter"><a href="https://i0.wp.com/jitendrazaa.com/blog/wp-content/uploads/2013/08/Master-Group.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" class="size-full wp-image-3430" alt="Master Group in Salesforce - Winter 14" src="https://i0.wp.com/jitendrazaa.com/blog/wp-content/uploads/2013/08/Master-Group.png?resize=274%2C432&#038;ssl=1" width="274" height="432" /></a><figcaption id="caption-attachment-3430" class="wp-caption-text">Master Group in Salesforce &#8211; Winter 14</figcaption></figure>
<p><strong>11. Flexible API Limits – Pilot</strong></p>
<p>Flexible limits allow your organization to exceed its API request limit up to 50 percent above your normal limits within the limit timeframe (typically 24 hours). For example, if your daily limit for API requests is 100,000, it&#8217;s extended to 150,000. The following day, if your organization activity spikes again, the limit will be extended to 150,000 requests again.</p>
<p><strong>12. Server Side View State – Pilot</strong></p>
<p>Server-side view state maintains a Visualforce page&#8217;s view state on the server, instead of sending it back and forth during form submissions and responses. This can reduce the amount of data being transmitted per request, which can improve performance, especially over connections with limited bandwidth or high latency, such as a mobile wireless connection.</p>
<p><span style="color: #ff0000;"><strong>13. Statement Limit Elimination from Apex</strong></span></p>
<p>The code statement limit has been removed. Apex transactions are no longer limited by the number of code statements they can execute, allowing you to potentially execute more code statements than the previously enforced statement limit. To protect against infinite processes overusing shared CPU resources, the maximum CPU time for a transaction is 10,000 milliseconds for synchronous Apex, and 60,000 milliseconds for asynchronous Apex (Batch Apex and future methods).</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.jitendrazaa.com/blog/salesforce/salesforce-winter-14-new-features/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3427</post-id>	</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-06-19 00:53:07 by W3 Total Cache
-->