<?xml version="1.0" encoding="UTF-8" standalone="no"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:gd="http://schemas.google.com/g/2005" xmlns:georss="http://www.georss.org/georss" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-6894206908194712402</atom:id><lastBuildDate>Mon, 16 Sep 2024 18:31:46 +0000</lastBuildDate><category>ANT in salesforce</category><category>Alternate of Developer console for Query Execution</category><category>Apex:variable</category><category>Calculating Age From Date of Birth</category><category>Counter in tables</category><category>Date Picker</category><category>Date Picker while header and  sidebar should not be visible</category><category>How to Use Field Set in VF page</category><category>Integration of Facebook to Salesforce</category><category>List View Id</category><category>Record on Dashboard</category><category>SOQL In Chatter</category><category>Salesforce Internal Serve Error</category><category>Visualforce Development</category><category>attachment</category><category>conditional style in Apex</category><category>replace ' by \' in a string</category><category>voice Search on Google</category><title>Salesforce_Tips</title><description>Here you will easily find some solutions, tips and ideas which may help you to solve technical issue related to Salesforce.I believe in step by step learning......</description><link>http://gotosalesforce.blogspot.com/</link><managingEditor>noreply@blogger.com (Sandeep Singhal)</managingEditor><generator>Blogger</generator><openSearch:totalResults>72</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:image href="https://picasaweb.google.com/109711839150018844259/BloggerPictures?authkey=Gv1sRgCNXDmuTKkKLyeQ"/><itunes:subtitle>Here you will easily find some solutions, tips and ideas which may help you to solve technical issue related to Salesforce.I believe in step by step learning......</itunes:subtitle><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6894206908194712402.post-6456827082525629841</guid><pubDate>Sat, 11 Apr 2020 06:45:00 +0000</pubDate><atom:updated>2020-04-11T12:15:06.637+05:30</atom:updated><title>How to block screen on Lightning Component on Loading</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hi,&lt;br /&gt;
&lt;br /&gt;
Here I would like to discuss a way of blocking screen on a lightning component while loading or clicking on a button.&lt;br /&gt;
&lt;br /&gt;
Here is code.&lt;br /&gt;
&lt;br /&gt;
Lightning Component&lt;br /&gt;
&lt;br /&gt;
&amp;lt;aura:component implements="force:lightningQuickAction" &amp;gt;&lt;br /&gt;
&lt;span style="white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;aura:handler event="aura:waiting" action="{!c.showSpinner}"/&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;aura:handler event="aura:doneWaiting" action="{!c.hideSpinner}"/&amp;gt;&lt;br /&gt;
&amp;lt;/aura:component&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JS Controller:&lt;br /&gt;
&lt;br /&gt;
({&lt;br /&gt;
&lt;span style="white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; // function automatic called by aura:waiting event&amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; showSpinner: function(component, event, helper) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // remove slds-hide class from mySpinner&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var spinner = component.find("mySpinner");&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $A.util.removeClass(spinner, "slds-hide");&lt;br /&gt;
&amp;nbsp; &amp;nbsp; },&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; // function automatic called by aura:doneWaiting event&lt;br /&gt;
&amp;nbsp; &amp;nbsp; hideSpinner : function(component,event,helper){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // add slds-hide class from mySpinner&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var spinner = component.find("mySpinner");&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $A.util.addClass(spinner, "slds-hide");&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
})&lt;/div&gt;
</description><link>http://gotosalesforce.blogspot.com/2020/04/how-to-block-screen-on-lightning.html</link><author>noreply@blogger.com (Sandeep Singhal)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6894206908194712402.post-3884727752603069053</guid><pubDate>Thu, 23 Mar 2017 18:01:00 +0000</pubDate><atom:updated>2017-03-23T23:31:02.556+05:30</atom:updated><title>How to deal with Action function &amp; Apex Command Button Together</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;I have seen many posts where I found newbies are struggling with issues when they call action function from apex:command button.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;I have some points to be considered:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;1. My first recommendation is to avoid calling action function from apex Command Button until unless you have specific requirement to validate some inputs in javascript before hitting the server.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;2. If you have to call action function from command button then please follow below points.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;2.A) When you use action function and command button then you page gets submitted two times and it causes an issue of setting public properties (bound with Page like setters) to null value.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;2.B) To resolve this issue use &amp;nbsp;"return false;" in your onclick event just after calling JS function or action function.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; 2.C) Please go through with below code to see how to do it.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&amp;lt;apex:page Controller="myController"&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&amp;lt;apex:form&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&amp;lt;apex:actionFunction action="{!SaveData}" name="SaveData" reRender="pbId" /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&amp;lt;script&amp;gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;function Save() { &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;SaveData(); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&amp;lt;apex:pageBlock id="pbId" &amp;gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&amp;lt;apex:commandButton value="Submit" onclick="Save(); return false;" rerender="pbId" /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&amp;lt;/apex:form&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&amp;lt;/apex:page&amp;gt;&lt;/span&gt;&lt;/div&gt;
</description><link>http://gotosalesforce.blogspot.com/2017/03/how-to-deal-with-action-function-apex.html</link><author>noreply@blogger.com (Sandeep Singhal)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6894206908194712402.post-2137754303534178371</guid><pubDate>Thu, 23 Mar 2017 17:40:00 +0000</pubDate><atom:updated>2017-03-23T23:10:45.713+05:30</atom:updated><title>How to check if at least one check box is selected in Apex Page BlockTable</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hi folks,&lt;br /&gt;
&lt;br /&gt;
I would like to touch a very common scenario we had to check if at least item (from checkbox) is selected from a data table before submitting the form.&lt;br /&gt;
&lt;br /&gt;
I have implemented it as below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;apex:page Controller="myController"&amp;gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&amp;lt;apex:includeScript value="{!URLFOR($Resource.jsFiles, 'jquery-1.7.1.min.js')}" /&amp;gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&amp;lt;apex:includeScript value="{!URLFOR($Resource.JQueryUI, 'jquery-ui-1.11.2/jquery-ui.min.js')}"&amp;gt;&amp;lt;/apex:includeScript&amp;gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&amp;lt;script&amp;gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;j$ = jQuery.noConflict();&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;function Save() {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;if(j$(".selectionCheckbox:checked").length == 0){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert('Please select at least one Item.');&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;// Call action function to go ahead to save&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&amp;lt;apex:pageBlock id="pbId" &amp;gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&amp;lt;apex:pageBlockTable value="{!SampleDataList}" var="RelatedData"&amp;gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;&amp;lt;apex:column &amp;gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;&amp;lt;apex:facet name="header"&amp;gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;     &lt;/span&gt;&amp;lt;apex:inputCheckbox id="checkAll"&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;onClick="jQuery('.selectionCheckbox').attr('checked', this.checked);" /&amp;gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;&amp;lt;/apex:facet&amp;gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;&amp;lt;apex:inputCheckbox styleClass="selectionCheckbox"&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;id="myCheckbox" value="{!RelatedData.isSelected}" /&amp;gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;&amp;lt;/apex:column&amp;gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;&amp;lt;apex:column value="{!RelatedData.Name}" /&amp;gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&amp;lt;/apex:pageBlockTable&amp;gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&amp;lt;/apex:pageBlockTable&amp;gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&amp;lt;apex:commandButton value="Save" onclick="Save(); return false;"&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;      &lt;/span&gt;rerender="pbId" /&amp;gt;&lt;br /&gt;
&amp;lt;/apex:page&amp;gt;&lt;/div&gt;
</description><link>http://gotosalesforce.blogspot.com/2017/03/how-to-check-if-at-least-one-check-box.html</link><author>noreply@blogger.com (Sandeep Singhal)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6894206908194712402.post-1878320707373296879</guid><pubDate>Wed, 04 Jan 2017 20:51:00 +0000</pubDate><atom:updated>2017-01-05T02:21:58.041+05:30</atom:updated><title>Insufficient Error while Editing/Deleting Task in Salesforce</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Recently I came across with an issue of getting in sufficient error (while editing or deleting task) by logged in user where he has created task and assigned to any other user without associating with any record.&amp;nbsp;&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
I found some facts during my research. I found that : &amp;nbsp;&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
If a user 'A' creates a task record and assign it to user 'B' then this task would not be visible to user 'A' until unless task is related to a record which is accessible to user 'A'.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
But even user 'A' can see that task through a way I just explained above, user 'A' would not be able to Edit or Delete that task record.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
So we may consider that through standard Interface ( standard layout/Home Page 'My Task' section or any report) it is not possible but I found that by accessing task records through Visualforce page we allow user 'A' to edit as well as delete task record created by him.&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</description><link>http://gotosalesforce.blogspot.com/2017/01/insufficient-error-while.html</link><author>noreply@blogger.com (Sandeep Singhal)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6894206908194712402.post-7628502038236101360</guid><pubDate>Sat, 24 Dec 2016 00:22:00 +0000</pubDate><atom:updated>2016-12-24T05:52:00.574+05:30</atom:updated><title>Switching to Lightning in Easy Way...</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9Vp756tna5vD5WRSr8tFWppiMEAvBYRYIOnNY4qZE8DV16KguwamQ2plNMBZTTBfgiNRv6EX5QKaHz5S3bDvo1IZgD6BwgfJIWO7mdMLyMdySSYyeloeYAsTQ9yLUKVUd_I-IrwMMvKY/s1600/Lightning.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="133" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9Vp756tna5vD5WRSr8tFWppiMEAvBYRYIOnNY4qZE8DV16KguwamQ2plNMBZTTBfgiNRv6EX5QKaHz5S3bDvo1IZgD6BwgfJIWO7mdMLyMdySSYyeloeYAsTQ9yLUKVUd_I-IrwMMvKY/s200/Lightning.jpg" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both;"&gt;
Hey folks,&lt;/div&gt;
&lt;div class="separator" style="clear: both;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both;"&gt;
Since last so many years I am living with one of the best UI framework that is Visualforce. It is such an amazing part of salesforce which helps a lot for interacting, an end user with application.&lt;/div&gt;
&lt;div class="separator" style="clear: both;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both;"&gt;
Time by time, as we are switching to mobile devices which are so handy as well as supportive to our life style for providing all the information on the go. A series of technologies are being used for displaying information quick &amp;amp; in responsive manner according to device your are with, regardless of size.&lt;/div&gt;
&lt;div class="separator" style="clear: both;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both;"&gt;
In order to show information in responsive way, we need many technologies. So along with developing logic we need to take care of responsiveness too.&lt;/div&gt;
&lt;div class="separator" style="clear: both;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both;"&gt;
"How easy it would be if it responsiveness gets handled automatically without require an extra efforts. Is there any solution available in salesforce ?"&lt;/div&gt;
&lt;div class="separator" style="clear: both;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both;"&gt;
Yes Lightning is here !!&lt;/div&gt;
&lt;div class="separator" style="clear: both;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both;"&gt;
Lightning component take care of it and let you focus only on developing business logic.&lt;/div&gt;
&lt;div class="separator" style="clear: both;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both;"&gt;
So if you are still on visualforce then here are some tips to understand how to move to lightning.&lt;/div&gt;
&lt;div class="separator" style="clear: both;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both;"&gt;
&lt;/div&gt;
&lt;ol style="text-align: left;"&gt;
&lt;li&gt;Lightning component is based on Aura (an open source UI framework) that supports HTML tags also and can be easily bind with apex controller.&lt;/li&gt;
&lt;li&gt;You may get started building lightning component through developer console it self.&lt;/li&gt;
&lt;li&gt;Lightning component may overcome many problems that you face in visualforce. For example we can not show more than 1000 items in visualforce page directly binding collection to VF page but lightning component allows it.&lt;/li&gt;
&lt;li&gt;Using lightning component, you may keep your application structured that is very easy to maintain.&lt;/li&gt;
&lt;li&gt;As visualforce are page-centric, meaning we have to do most of the things on server side but lightning component are based on client-side-centric so before switching to lightning, this should be considered as per your requirement.&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both;"&gt;
Here is one of my &lt;a href="http://www.codespokes.com/2015/08/lightning-component.html"&gt;Blog post&lt;/a&gt; regarding how to develop lightning component.&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;span style="color: rgba(0, 0, 0, 0.701961); font-family: &amp;quot;Source Serif Pro&amp;quot;, serif;"&gt;Go #Lightning!!&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://gotosalesforce.blogspot.com/2016/12/switching-to-lightning-in-easy-way.html</link><author>noreply@blogger.com (Sandeep Singhal)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9Vp756tna5vD5WRSr8tFWppiMEAvBYRYIOnNY4qZE8DV16KguwamQ2plNMBZTTBfgiNRv6EX5QKaHz5S3bDvo1IZgD6BwgfJIWO7mdMLyMdySSYyeloeYAsTQ9yLUKVUd_I-IrwMMvKY/s72-c/Lightning.jpg" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6894206908194712402.post-9190963017857823315</guid><pubDate>Thu, 11 Aug 2016 22:23:00 +0000</pubDate><atom:updated>2016-08-12T13:49:54.823+05:30</atom:updated><title>How to Combine Documents through Docusign APIs</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
This time I got a chance to play with inner world of Docusign. Always I prefer REST API but this time SOAP saved my life.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
I had a challenge to combine all signed document in single enevelope ( condition is you can not get it through Docusign configs settings because that is common for) so I have used soap api this time over rest ( was giving me Time out error).&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Required Data: &amp;nbsp;Docusign Credential , Integrator Key &amp;amp; EnevelopId.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Firstly created a class 'DocusignSOAPfromWSDL_Cls' trough wsdl file then written our logic to get all document in combined format. Below is my code snippet:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// To Set endpoit URL&lt;br /&gt;
dsApiSend.endpoint_x = 'https://demo.docusign.net/api/3.0/dsapi.asmx';&lt;br /&gt;
&lt;br /&gt;
// To Set Authentication&lt;br /&gt;
String auth = '&amp;lt;DocuSignCredentials&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Username&amp;gt;'+ DocusignUserName+'&amp;lt;/Username&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Password&amp;gt;' + DocusignPassword&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;+ '&amp;lt;/Password&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;IntegratorKey&amp;gt;' + Docusign_IntegratorKey&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;+ '&amp;lt;/IntegratorKey&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/DocuSignCredentials&amp;gt;';&lt;br /&gt;
&lt;br /&gt;
// To Set Headers &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
dsApiSend.inputHttpHeaders_x = new Map&amp;lt;String, String&amp;gt;();&lt;br /&gt;
dsApiSend.inputHttpHeaders_x.put('X-DocuSign-Authentication',auth); &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
//Interating all incoming docusign status records&lt;br /&gt;
&amp;nbsp;DocusignSOAPfromWSDL_Cls.EnvelopePDF combinedPDF = dsApiSend.RequestPDFNoWaterMark(docusignEnvelopeID);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Attachment&amp;nbsp;combinedDocument&amp;nbsp;= &amp;nbsp;new attachment(&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Body=EncodingUtil.base64Decode(combinedPDF.PDFBytes),&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Name= AttachmentName+'.pdf',&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;parentId= ParentRecordId&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; insert combinedDocument ;&lt;br /&gt;
&lt;br /&gt;
This is how you may combine all signed document through Docusign.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://gotosalesforce.blogspot.com/2016/08/how-to-combine-document-through.html</link><author>noreply@blogger.com (Sandeep Singhal)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6894206908194712402.post-5469767337868882572</guid><pubDate>Wed, 03 Aug 2016 21:54:00 +0000</pubDate><atom:updated>2016-08-04T03:29:18.690+05:30</atom:updated><title>Finding nearest locations on google map within Salesforce</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Locating anything is just part of our daily habit. Salesforce made is very easy by adding Geolocation to Address field types. So I have did one practice to locate nearest restaurants on google map.&lt;br /&gt;
&lt;br /&gt;
Lets Say I have one Company Record and would l like to plot all restaurants that are located in x unit of distance to company on google map.&lt;br /&gt;
&lt;br /&gt;
To achieve this I am going to use two features of salesforce one is Distance formula&lt;br /&gt;
&lt;br /&gt;
DISTANCE(AddressField, GEOLOCATION(latitude,longitude), 'mi')&lt;br /&gt;
&lt;br /&gt;
and another one is apex:map &amp;amp; apex:mapmarker tag&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Visualforce page&lt;/b&gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;apex:page controller="findrestaurantsController"&amp;gt; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:pageBlock &amp;gt; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;apex:pageBlockSection title="Nearest Restaurants" &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:map width="600px" height="500px" center="{!mylocation}" zoomLevel="5"&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:repeat value="{!NearestRestaurantsList}" var="nearestPos" &amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:mapMarker position="{!nearestPos.location}" title="{!nearestPos.RestaurantName}"/&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:repeat&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:map&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/apex:pageBlockSection&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/apex:pageBlock&amp;gt;&lt;br /&gt;
&amp;lt;/apex:page&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiEPt-BenhyiULffttprBUA6_e7RTgyCosB-5C-IHg9QQrWjtq1Z2S7QxNp14BxMYq1-55faTyiUAByMHbnJa9qJ9iFWCPeIG_3ITQM77yDrH1zcv43zLKmgfz6N0DO6k-atbw9Z7MSe8/s1600/img.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="227" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiEPt-BenhyiULffttprBUA6_e7RTgyCosB-5C-IHg9QQrWjtq1Z2S7QxNp14BxMYq1-55faTyiUAByMHbnJa9qJ9iFWCPeIG_3ITQM77yDrH1zcv43zLKmgfz6N0DO6k-atbw9Z7MSe8/s320/img.png" width="320" /&gt;&lt;/a&gt;&lt;b&gt;Controller&lt;/b&gt;:&lt;br /&gt;
public class FindrestaurantsController {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; // Public Properties&lt;br /&gt;
&amp;nbsp; Public map &amp;lt; String, decimal &amp;gt; mylocation {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; get;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; private set;&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; Public List &amp;lt; NearestRestaurants &amp;gt; NearestRestaurantsList {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; get;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; set;&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; Public FindrestaurantsController() {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Company__c Company = new Company__c();&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;String CompanyId = ApexPages.currentPage().getParameters().get('id');&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Company = [Select Id, Name, Location__latitude__s, Location__longitude__s From Company__c Where Id =: CompanyId];&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; mylocation = new Map &amp;lt; String, Double &amp;gt; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 'latitude' =&amp;gt; Company.Location__latitude__s,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 'longitude' =&amp;gt; Company.Location__longitude__s&lt;br /&gt;
&amp;nbsp; &amp;nbsp; };&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; String queryString =&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 'SELECT Id, Name, Radius__c, Location__c, Location__longitude__s,' +&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 'Location__latitude__s ' +&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 'FROM Restaurant__c ' +&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 'WHERE Id != \'' + Company.id + '\' AND DISTANCE(Location__c, GEOLOCATION(' + Company.Location__latitude__s +&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; ',' + Company.Location__longitude__s + '), \'mi\') &amp;lt; ' +&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; Company.Distance__c + ' ' +&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 'ORDER BY DISTANCE(Location__c, GEOLOCATION(' + Company.Location__latitude__s + ',' + Company.Location__longitude__s +&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; '), \'mi\') ';&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;// Getting nearest Restaurant records &lt;br /&gt;
&amp;nbsp; &amp;nbsp; List &amp;lt; Restaurant &amp;gt; otherRestaurants = new List &amp;lt; Restaurant &amp;gt; ();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; otherRestaurants = Database.query(queryString);&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; NearestRestaurantsList = new List &amp;lt; NearestRestaurants &amp;gt; ();&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;// Building wrapper List&lt;br /&gt;
&amp;nbsp; &amp;nbsp; for (Restaurant otherRestaurant: otherRestaurants) {&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;NearestRestaurants wrapItem = new NearestRestaurants(&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;new Map &amp;lt; String, Double &amp;gt; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'latitude' =&amp;gt; otherRestaurant.Location__latitude__s,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'longitude' =&amp;gt; otherRestaurant.Location__longitude__s&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;        &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;},&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;otherRestaurant.Name);&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;NearestRestaurantsList.add(wrapItem);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; // Wrapper Class to store nearest restaurants detail&lt;br /&gt;
&amp;nbsp; Public Class NearestRestaurants {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Public map &amp;lt; String, decimal &amp;gt; location {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; get;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; private set;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Public String RestaurantName {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; get;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; private set;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; public NearestRestaurants(Map &amp;lt; String, Double &amp;gt; nearestlocation, String myResName) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; location = nearestlocation;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; RestaurantName = myResName;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Thanks for reading this post.&amp;nbsp;&lt;/div&gt;
</description><link>http://gotosalesforce.blogspot.com/2016/08/finding-nearest-locations-on-google-map.html</link><author>noreply@blogger.com (Sandeep Singhal)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiEPt-BenhyiULffttprBUA6_e7RTgyCosB-5C-IHg9QQrWjtq1Z2S7QxNp14BxMYq1-55faTyiUAByMHbnJa9qJ9iFWCPeIG_3ITQM77yDrH1zcv43zLKmgfz6N0DO6k-atbw9Z7MSe8/s72-c/img.png" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6894206908194712402.post-2530899345030938750</guid><pubDate>Tue, 05 Jul 2016 08:06:00 +0000</pubDate><atom:updated>2016-07-05T13:36:36.439+05:30</atom:updated><title>Salesforce disabling TLS 1.0 Solution</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot; , sans-serif;"&gt;As we all know Salesforce disabled TLS 1.0 so any inbound connections to or outbound connections from your Salesforce org will need to use the TLS 1.1 or TLS 1.2 encryption protocol&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #555555;"&gt;&lt;span style="font-family: &amp;quot;verdana&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot; , sans-serif;"&gt;So if have been going through below issue (like me)&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="color: red; font-family: &amp;quot;verdana&amp;quot; , sans-serif;"&gt;Why do I see the error: TLS 1.0 has been disabled in this organization. Please use TLS 1.1 or higher when connecting to Salesforce using https&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot; , sans-serif;"&gt;&amp;amp; if you are in Summer'16 then Here is the solution for&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style="font-family: &amp;quot;verdana&amp;quot; , sans-serif;"&gt;1. Eclipse:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot; , sans-serif;"&gt;In your eclipse folder, there should be eclipse.ini file Please open file and add below&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot; , sans-serif;"&gt;keyword&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot; , sans-serif;"&gt;-Dhttps.protocols=TLSv1.1,TLSv1.2&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style="font-family: &amp;quot;verdana&amp;quot; , sans-serif;"&gt;2. Migration Tool Like ANT:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot; , sans-serif;"&gt;Add below variable in environment variables.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot; , sans-serif;"&gt;Variable Name : ANT_OPTS &amp;nbsp;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;verdana&amp;quot; , sans-serif;"&gt;Variable value &amp;nbsp;: -Dhttps.protocols=TLSv1.1,TLSv1.2&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/div&gt;
</description><link>http://gotosalesforce.blogspot.com/2016/07/salesforce-disabling-tls-10-solution.html</link><author>noreply@blogger.com (Sandeep Singhal)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6894206908194712402.post-2506262429721826458</guid><pubDate>Sun, 19 Jun 2016 12:51:00 +0000</pubDate><atom:updated>2016-06-19T18:40:12.468+05:30</atom:updated><title>How to handle a 301 redirect response to my HTTP callout </title><description>While trying out https callounts we typically see response with Status=Moved Permanently, StatusCode=301. Below is the code sample which gives us error:
&lt;pre class="cpp" name="code"&gt;
Http h = new Http();
HttpRequest req = new HttpRequest();
     
req.setHeader('Authorization', 'bearer ' + 'xxxxxxxxxx');
req.setEndpoint('https://www.&lt;domainname&gt;.com/v1.2/accounts');        
req.setMethod('GET');
req.setHeader('Content-Type', 'application/json; charset=UTF-8');
req.setTimeout(60*1000);
HttpResponse res = h.send(req);
String resString = res.getBody();
&lt;/pre&gt;


This errors generally occurs when target point we hit for, has permanently moved to a new location so in this case response should include this location. 

to fix this error we just need to get location out of first response and hit it again.So Finally code should be like below:

&lt;pre class="cpp" name="code"&gt;

Http h = new Http();
HttpRequest req = new HttpRequest();
       
req.setHeader('Authorization', 'bearer ' + 'xxxxxxxxxx');
req.setEndpoint('https://www.&lt;domainname&gt;.com/v1.2/accounts');        
req.setMethod('GET');
req.setHeader('Content-Type', 'application/json; charset=UTF-8');
req.setTimeout(60*1000);
HttpResponse res = h.send(req);
String resString = res.getBody();
String loc = res.getHeader('Location'); // get location of the redirect
req = new HttpRequest();
req.setEndpoint(loc);
req.setMethod('GET');
req.setHeader('Authorization', 'bearer ' + 'xxxxxxxxxx');
        res = h.send(req);

&lt;/pre&gt;

Now it gives Status code 200 with Status "OK"


</description><link>http://gotosalesforce.blogspot.com/2016/06/how-to-handle-301-redirect-response-to.html</link><author>noreply@blogger.com (Sandeep Singhal)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6894206908194712402.post-7947669103760153354</guid><pubDate>Mon, 14 Mar 2016 20:41:00 +0000</pubDate><atom:updated>2016-03-15T09:12:03.383+05:30</atom:updated><title>Delete Components before and after Component Updates in a deployment in Salesforce</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Guys, 

As we all know that Ant is such a great migration tool. I have described &lt;a href="http://www.codespokes.com/2011/06/how-to-use-ant-in-salesforce.html"&gt;how we can set-up ANT on our local machine&lt;/a&gt; and migrate desired component to Salesforce org.&lt;br /&gt;
&lt;br /&gt;
Today I am going to describe how we can delete component from salesforce org using ANT. 

Salesforce has provided a way of achieving it through some well defined desctructiveChanges.xml .&lt;br /&gt;
&lt;br /&gt;
Later on, it would took two at least migration attempts for clearing-up dependencies between components and deleting those respectively.&lt;br /&gt;
For example if one custom field is being used by an apex class then we can not delete that field until we remove that field's active presence from apex class. For this purpose, Salesforce unveiled two new type of xmls&lt;br /&gt;
&lt;br /&gt;
1.  destructiveChangesPre.xml&lt;br /&gt;
2.  destructiveChangesPost.xml&lt;br /&gt;
&lt;br /&gt;
Lets understand with an example. Let say there are two fields amount__c,department__c on Account Object and there is one class ShowingResult that use one field amount__c.

&lt;br /&gt;
&lt;pre class="cpp" name="code"&gt;Public class ShowingResult {

   Public void ShowingResult()
   {
       Account acc = new Account{Name = 'testAcc', amount__c = 1232};
       insert acc;    
   }

}
&lt;/pre&gt;
&lt;br /&gt;
In order to delete these two fields we need to make some required changes in apex class first. then system would allow us to delete amount__c field. Generally it would take two steps but the way is described below would do our job in one attempt.&lt;br /&gt;
&lt;br /&gt;
Here is your modified Apex Class: 
&lt;br /&gt;
&lt;pre class="cpp" name="code"&gt;Public class ShowingResult {

   Public void ShowingResult()
   {
       Account acc = new Account{Name = 'testAcc'}; // with modification
       insert acc;    
   }

}
&lt;/pre&gt;
&lt;br /&gt;
Now we just need to create three xml files(as below) and run these.System would run desctructiveChangesPre.xml then package.xml for updating component where we have removed dependencies. finally it would run desctructiveChangesPost.xml.&lt;br /&gt;

Your desctructiveChangesPre.xml&lt;br/&gt;
&lt;pre class="cpp" name="code"&gt;
&lt;package xmlns="http://soap.sforce.com/2006/04/metadata"&gt;
    &lt;types&gt;
        &lt;members&gt;Account.department__c&lt;/members&gt;
        &lt;name&gt;CustomField&lt;/name&gt;
    &lt;/types&gt;
    &lt;version&gt;36.0&lt;/version&gt;
&lt;/package&gt;
&lt;/pre&gt;
Your Package.xml:
&lt;br /&gt;

&lt;pre class="cpp" name="code"&gt;&lt;package xmlns="http://soap.sforce.com/2006/04/metadata"&gt;
    &lt;types&gt;
        &lt;members&gt;ShowingResult&lt;/members&gt;
        &lt;name&gt;ApexClass&lt;/name&gt;
    &lt;/types&gt;
    &lt;version&gt;36.0&lt;/version&gt;
&lt;/package&gt;
&lt;/pre&gt;
Your desctructiveChangesPost.xml:
&lt;br /&gt;
&lt;pre class="cpp" name="code"&gt;&lt;package xmlns="http://soap.sforce.com/2006/04/metadata"&gt;
    &lt;types&gt;
        &lt;members&gt;Account.amount__c&lt;/members&gt;
        &lt;name&gt;CustomField&lt;/name&gt;
    &lt;/types&gt;
    &lt;version&gt;36.0&lt;/version&gt;
&lt;/package&gt;
&lt;/pre&gt;
Keep these xml in src folder and run migration. 


&lt;/div&gt;</description><link>http://gotosalesforce.blogspot.com/2016/03/deleting-component-from-salesforce-orgs.html</link><author>noreply@blogger.com (Sandeep Singhal)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6894206908194712402.post-6863708721340101251</guid><pubDate>Fri, 26 Feb 2016 21:20:00 +0000</pubDate><atom:updated>2016-02-27T02:50:39.205+05:30</atom:updated><title>SandboxPostCopy : featured Post Refresh Activity </title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hi Folks,&lt;br /&gt;
&lt;br /&gt;
Today I am going to discuss about a very beautiful features Salesforce just released. This features to make your sandbox environment business ready, automate data manipulation or business logic tasks.&lt;br /&gt;
&lt;br /&gt;
While creating/refreshing any sandbox from you may need to run any logic just after completion of refresh so now it is possible using this feature called "&lt;b&gt;SandboxPostCopy&lt;/b&gt;" interface.&lt;br /&gt;
&lt;br /&gt;
Here I am taking an example where I need to create some couple of records of an opportunity object just after completing with refresh activity.&lt;br /&gt;
&lt;br /&gt;
I should have a class in production as below&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class="cpp" name="code"&gt;global class createOpportunity implements SandboxPostCopy {
  global void runApexClass(SandboxContext context) {
        // write your logic to create opportunity
     }
  }
&lt;/pre&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;span style="text-align: left;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;span style="text-align: left;"&gt;then while refreshing/creating sandbox you need to select this class to be executed as below:&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;span style="text-align: left;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJ-U56V1hO7URSQORSKvItGIq07B1seszpz8WiS4gbIw4fp0EBqt5_Te_CbIEHgoBtIiHV6o4kT1hzWcuh3i-DPYoflDKPuU0VFmg4-k7VXAvk3gwKdq8aTDs6Ypt0dkBbM8wQVMHB1s0/s1600/ok.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="102" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJ-U56V1hO7URSQORSKvItGIq07B1seszpz8WiS4gbIw4fp0EBqt5_Te_CbIEHgoBtIiHV6o4kT1hzWcuh3i-DPYoflDKPuU0VFmg4-k7VXAvk3gwKdq8aTDs6Ypt0dkBbM8wQVMHB1s0/s320/ok.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks for reading.!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://gotosalesforce.blogspot.com/2016/02/sandboxpostcopy-featured-post-refresh.html</link><author>noreply@blogger.com (Sandeep Singhal)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJ-U56V1hO7URSQORSKvItGIq07B1seszpz8WiS4gbIw4fp0EBqt5_Te_CbIEHgoBtIiHV6o4kT1hzWcuh3i-DPYoflDKPuU0VFmg4-k7VXAvk3gwKdq8aTDs6Ypt0dkBbM8wQVMHB1s0/s72-c/ok.jpg" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6894206908194712402.post-231217480818770262</guid><pubDate>Fri, 19 Feb 2016 05:32:00 +0000</pubDate><atom:updated>2016-02-19T11:02:24.729+05:30</atom:updated><title>Trailhead  Trail: Navigate the Salesforce Advantage</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Salesforce never sleeps ..&lt;br /&gt;
&lt;br /&gt;
As we all know Salesforce brings new and exciting things for us day to day &amp;amp; specially through Trailhead.&lt;br /&gt;
&lt;br /&gt;
This time Salesforce launched a new trail which let us know about many key differentiators , core values &amp;amp; vibrant ecosystem in very simple way as it alwasy does.&lt;br /&gt;
&lt;br /&gt;
Here is the path : &amp;nbsp;&lt;a href="https://developer.salesforce.com/trailhead/trail/salesforce_advantage"&gt;Navigate the Salesforce Advantage&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
It designed so beautiful that you will learn a lot along with fun story. It is 80 mins ( ideally ) trail. where you will know :&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://developer.salesforce.com/trailhead/module/salesforce_advantange_who_we_are"&gt;Salesforce Success Model &lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="https://developer.salesforce.com/trailhead/module/salesforce_advantange_what_we_do"&gt;Salesforce Cloud Benefits&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="https://developer.salesforce.com/trailhead/module/salesforce_advantange_how_we_do_it"&gt;Salesforce Technology Basics&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="https://developer.salesforce.com/trailhead/module/salesforce_advantange_ecosystem"&gt;Salesforce Ecosystem&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
It is useful for all who are already familiar Salesforce but specially who are newbie.&lt;br /&gt;
&lt;br /&gt;
Let me bring my views over every Module of this trail:&lt;br /&gt;
&lt;a href="https://developer.salesforce.com/trailhead/module/salesforce_advantange_who_we_are"&gt;Salesforce Success Model&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
It introduces Salesforce to you in a different way and very beneficial if you would like to grow as company as fast as you can. &lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNywau284FYu0btaGLJhDJ9HEb6fHxQTWCwgfrykPOLfwWgoSI7dbgsfkpCc-z-1OO-f9UjetAJPhL2fu6tENnHZ4kOz4zqcdmzV4JQT11yzMpHt2wuC5AyzkqFyz2PbnDjlIBPjhyphenhyphencAs/s1600/salesforce_advantage_apps_new.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="243" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNywau284FYu0btaGLJhDJ9HEb6fHxQTWCwgfrykPOLfwWgoSI7dbgsfkpCc-z-1OO-f9UjetAJPhL2fu6tENnHZ4kOz4zqcdmzV4JQT11yzMpHt2wuC5AyzkqFyz2PbnDjlIBPjhyphenhyphencAs/s320/salesforce_advantage_apps_new.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;a href="https://developer.salesforce.com/trailhead/module/salesforce_advantange_what_we_do"&gt;Salesforce Cloud Benefits&lt;/a&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
It explains beautifully that salesforce is a complete CRM and how it would become more beneficial as it is available on cloud. There are ample benefits of having cloud platform rather than traditional systems. How salesforce cloud gives us more advantage.&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ2W6eODp7ysvjvAqRd2lNj-vJXeWd7EiDPHefqm1wuaJHJmvBeq7ftwtOTQzA1fDuM2GpsJWgjqY6zeT5PNI788efoS0qssAP_efBWxIzEMXFiEqPrCPe7Bz8MAliwPWt9QBndIAwYjw/s1600/salesforce_advantage_percentages.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="142" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ2W6eODp7ysvjvAqRd2lNj-vJXeWd7EiDPHefqm1wuaJHJmvBeq7ftwtOTQzA1fDuM2GpsJWgjqY6zeT5PNI788efoS0qssAP_efBWxIzEMXFiEqPrCPe7Bz8MAliwPWt9QBndIAwYjw/s320/salesforce_advantage_percentages.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;a href="https://developer.salesforce.com/trailhead/module/salesforce_advantange_how_we_do_it"&gt;Salesforce Technology Basics&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
When it talks about basics it brings many thing which essential to know like how Salesforce care about trust of customers, How system provides multitenancy to use system more efficiently/productively.&amp;nbsp;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
How we can understand technical concept though real life examples which is such a great way to learning. e.g. metadata.&amp;nbsp;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
also explains how user can decide if app should be developed by either point &amp;amp; click or coding.&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;a href="https://developer.salesforce.com/trailhead/module/salesforce_advantange_ecosystem"&gt;Salesforce Ecosystem&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
it gives a message that we all are together, we can make progress helping to each other thats why community was built. Appexchange was introduced, local user group events are being organized.&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
So event I have been associated with salesforce since last many years but still many new things while doing this trail.&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
What I feel:&amp;nbsp;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;/div&gt;
&lt;ul style="text-align: left;"&gt;
&lt;li&gt;This &lt;a href="https://developer.salesforce.com/trailhead/trail/salesforce_advantage"&gt;trail&lt;/a&gt; really helpful to dev, admin to understand salesforce from in a new way and related with what experience they are getting over the years working on salesforce platform.&lt;/li&gt;
&lt;li&gt;I would love one of four core differentiators that is customer success. It really matter like if your custom is happy and getting success it feels you happy and more confident while delivering more and more.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;So I have done this trail !! what you are waiting for ?? &amp;nbsp;Thanks Salesforce Trailhead for giving such innovative ways of learning.&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
Thanks everyone for reading the post.&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://gotosalesforce.blogspot.com/2016/02/trailhead-trail-navigate-salesforce.html</link><author>noreply@blogger.com (Sandeep Singhal)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNywau284FYu0btaGLJhDJ9HEb6fHxQTWCwgfrykPOLfwWgoSI7dbgsfkpCc-z-1OO-f9UjetAJPhL2fu6tENnHZ4kOz4zqcdmzV4JQT11yzMpHt2wuC5AyzkqFyz2PbnDjlIBPjhyphenhyphencAs/s72-c/salesforce_advantage_apps_new.png" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6894206908194712402.post-2699838446300537934</guid><pubDate>Wed, 23 Dec 2015 05:17:00 +0000</pubDate><atom:updated>2015-12-23T10:47:50.394+05:30</atom:updated><title>Advanced Formulas by Salesforce Trainhead</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;As we all know formulas are very power tool which let you know calculation result very quick without single line of apex code. It saves a lot of time and avoid apex customization and all.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;Salesforce recently added a great explanation over advance formula in to Trailhead just to let us learn more and more about formula's concept.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;I have gone through with deep dive and I liked the way of explanation as I always see on trailhead no matter if you are newbie/intermediate/Specialist.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;On this trail it explains Advance formula with different return types:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;Checkbox, Number, Percetage, Currency,Date/DateTime etc.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;Also covering how to use Text &amp;amp; picklist field values in formula.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;Let me cover a these in bit more detail.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;1. It explains how checkbox plays important role in to formulas &amp;amp; how we can use IF(), AND(), NOT(), and OR() functions in these formulas. Just to play with it click here&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;a href="https://developer.salesforce.com/trailhead/advanced_formulas/checkbox_logic_formulas"&gt;Using Basic Logic in Checkbox Formulas&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;2. It explains the difference between the number, currency, and percent types &amp;amp; also describe use cases for formulas with the number, currency, and percent types.Just to play with it click here&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;a href="https://developer.salesforce.com/trailhead/advanced_formulas/numbers_formulas"&gt;Using Numbers, Currency, and Percentages in Formulas&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;3. explanation to build and avoid confusion between usage of Date and DateTime formulas.Just to play with it click here&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;a href="https://developer.salesforce.com/trailhead/advanced_formulas/date_formulas"&gt;Using Date and Date/Time Formulas&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;4. Also explains how to refer picklist field in formulas &amp;amp; some use cases for formulas that reference picklist fields.Just to play with it click here&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;a href="https://developer.salesforce.com/trailhead/advanced_formulas/picklist_formulas"&gt;Using Picklists in Formulas&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;5. and at last it covers about text type formulas.Just to play with it click here&lt;/span&gt;&lt;br /&gt;
&lt;a href="https://developer.salesforce.com/trailhead/advanced_formulas/text_formulas"&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Using Text Formulas&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
</description><link>http://gotosalesforce.blogspot.com/2015/12/advanced-formulas-by-salesforce.html</link><author>noreply@blogger.com (Sandeep Singhal)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6894206908194712402.post-4869983429952747590</guid><pubDate>Mon, 14 Sep 2015 21:44:00 +0000</pubDate><atom:updated>2015-09-15T03:14:10.029+05:30</atom:updated><title>New Lightning Experience Content over Traihead</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Salesforce always brings new things but this time it brought amazing, fabulous thing for all of us no matter if we are Developers, Admins, Salesforce Rep.&lt;br /&gt;
&lt;br /&gt;
"Salesforce brought-up a new Salesforce." it is nothing but new Lighting experience along with supporting classic one.&lt;br /&gt;
&lt;br /&gt;
And also provided a great tool for getting started with it in easiest way. As I am developer so would like to bring you deep in new lightning dive.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://developer.salesforce.com/trailhead/trail/lex_dev"&gt;Developer Trail - Lightning Experience | Salesforce Trailhead&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
So come with me visit few of my favorite content putting over there.&lt;br /&gt;
&lt;br /&gt;
&lt;U&gt;&lt;a href="https://developer.salesforce.com/trailhead/module/lex_migration_introduction"&gt;Lightning Experience Basics&lt;/a&gt;&lt;/U&gt;&lt;br /&gt;
&lt;br /&gt;
To respond millions of feedback Salesforce bring some thing new which can&lt;br /&gt;
1. Fill gap between Dev, Admin &amp;amp; Sales Rep.&lt;br /&gt;
2. Save precious time of customer to do any activity in minimum clicks.&lt;br /&gt;
3. Help develop, access Apps compatible for different devices whether it is Desktop, Mobile or Tablae.&lt;br /&gt;
&lt;br /&gt;
So Salesforce introduced new Lighting Experience. It faster, beautiful &amp;amp; more interactive. It is very easy to switch to or back to previous one based on user's preference.&lt;br /&gt;
&lt;br /&gt;
Best feature I liked most is that Salesforce has given all control to end user for &amp;nbsp;getting new look &amp;amp; feel (experience) of doing things quickly just like light flash that's why it was called Lightning Experience.&lt;br /&gt;
&lt;br /&gt;
in this series I have another content I would love most is&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://developer.salesforce.com/trailhead/lex_dev_visualforce/lex_dev_visualforce_intro"&gt;Using Visualforce in Lightning Experience&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
After getting a basic idea now next thing is to customization do lets go to development corner. Although we are moving ahead to new lightning experience but salesforce continue to support existing Visualforce development for Salesforce classic (existing Salesforce) as well as allowng visualforce development in new lightning experience.&lt;br /&gt;
Here are few steps like&lt;br /&gt;
build VF page-&gt; Create Tab for it -&gt; custom App and make it available in App Launcher.&lt;br /&gt;
&lt;br /&gt;
A smplified way to test your page in Lightning Experience is just type the following into your JavaScript console as below:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="cpp" name="code"&gt;&lt;br /&gt;
$A.get("e.force:navigateToURL").setParams({"url": "/apex/pageName"}).fire();&lt;br /&gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
now question raised that will Existing VF page will also work on new Lightning experience &amp;nbsp;then answer would yes but not fully as we need to make some required changes to do this.&lt;br /&gt;
&lt;br /&gt;
so for more information you can quickly visit :https://developer.salesforce.com/trailhead/trail/lex_dev&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://gotosalesforce.blogspot.com/2015/09/new-lightning-experience-content-over.html</link><author>noreply@blogger.com (Sandeep Singhal)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6894206908194712402.post-2829119568037372384</guid><pubDate>Fri, 04 Sep 2015 04:47:00 +0000</pubDate><atom:updated>2015-09-04T10:25:19.926+05:30</atom:updated><title>JSON Data Binding in Apex</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
While playing with JSON I came up with intersting usecase of binding JSON data in Class properties. 
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Here is JSON Data:&lt;/b&gt; 
&lt;br /&gt;
&lt;pre class="cpp" name="code"&gt;[ 
 {
  "ProductionHouse":"ABCD", 
  "Director":"Mr XYZ", 
  "Casting": [
   { "Title": "Play1", 
   "Artists": ["Artist1", "Artist2", "Artist3", "Artist4", "Artist0"]   
   },    
   {
   "Title": "Play2",
   "Artists": ["Artist1", "Artist2", "Artist0"] 
   }
  ]
 }
]
&lt;/pre&gt;
in order to coupling this data with some real time properties I have written below logic :
&lt;br /&gt;
&lt;pre class="cpp" name="code"&gt; Public Class Play_Controller{

    // JSON data binding with Class properties 
    public static void Databinding()
    {
        String inputJSON= '[    {   "ProductionHouse":"ABCD","Director":"Mr XYZ","Casting": [{ "Title": "Play1","Artists": ["Artist1", "Artist2", "Artist3", "Artist4", "Artist0"]             },  {"Title": "Play2","Artists": ["Artist1", "Artist2", "Artist0"] }]}]';
        List&lt;datamainwrapper&gt; DataMainwrapperList = new List&lt;datamainwrapper&gt;();
        DataMainwrapperList = (List&amp;lt; DataMainwrapper &amp;gt;)JSON.deserialize(inputJSON, List&lt;datamainwrapper&gt;.class);

        for(DataMainwrapper Obj : DataMainwrapperList)
        {
            system.debug('---Prod House Name--'+Obj.ProductionHouse);
            system.debug('---Director--'+Obj.Director);
            for(CastingSubWrapper subobj : obj.Casting)
            {
                system.debug('---Play Title--'+subobj.Title);
                system.debug('---Play Artists--'+subobj.Artists);
            }
        }
    }
    
    // Wrapper holding properties of JSON with data upper leve
    public class DataMainwrapper{
        String ProductionHouse;
        String Director;
        List&lt;castingsubwrapper&gt; Casting;
    }

    // Wrapper holding properties of JSON with data sub level
    Public class CastingSubWrapper{
        String Title;
        List&lt;string&gt; Artists;
    }    
}
//--Please Ignore below code line--
&lt;/pre&gt;
Further we can bind this data in respective objects in Apex. So I hope now it will helpful to understand how JSON data may enter in salesforce. &lt;/div&gt;
</description><link>http://gotosalesforce.blogspot.com/2015/09/json-data-binding-in-apex.html</link><author>noreply@blogger.com (Sandeep Singhal)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6894206908194712402.post-1397063143912695804</guid><pubDate>Wed, 26 Aug 2015 22:22:00 +0000</pubDate><atom:updated>2015-08-27T09:32:47.258+05:30</atom:updated><title>Meet the New Salesforce</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hi, All Customer, Developers, Admins.&lt;br /&gt;
&lt;br /&gt;
It doesn't matter you do code or not but the thing today I am talking about, is for you. It is new Salesforce in form of experiencing new design.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF0BsKGFvczqA3o2j2CqI57mYnluosVIspJ8NVyFYjJ7oT2GDMLBkOU0Uq9rlYhCKNJUENzKWR9utrnysBmcUaY-d_aFlfE-by0-eDf5G0IQ6kGm_wEY6VwuZvl-qealurk4k-nCaoJX8/s1600/newSF1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="312" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF0BsKGFvczqA3o2j2CqI57mYnluosVIspJ8NVyFYjJ7oT2GDMLBkOU0Uq9rlYhCKNJUENzKWR9utrnysBmcUaY-d_aFlfE-by0-eDf5G0IQ6kGm_wEY6VwuZvl-qealurk4k-nCaoJX8/s640/newSF1.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
After Trailhead announcement Salesforce made a biggest announcement in their release. It is bringing a new face of Salesforce to us. Now Salesforce letting customers design their screen.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWrDk9_9Eomi-DneVtqWEbtVT5uTSL-9HTlTEYugzCNOfAyelKC_eNhiJpmMRmo06QkEn9p8A91waYEbrBaWPLxUL2xBPyYtfDFthF9sWNUbpIUDwWNePGrahlOftUrf6IbG42N1aG2Ac/s1600/oldsf.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="252" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWrDk9_9Eomi-DneVtqWEbtVT5uTSL-9HTlTEYugzCNOfAyelKC_eNhiJpmMRmo06QkEn9p8A91waYEbrBaWPLxUL2xBPyYtfDFthF9sWNUbpIUDwWNePGrahlOftUrf6IbG42N1aG2Ac/s640/oldsf.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheRsqaBi7eO85-h8_tgDiEEMFyICCrc6-c4Zvm8YMvor-YYOiSXsP2ZA3z7g9tUJrgW9XznE6xKPj0ZJUS1MTHPemopNRj9_6SXpsmXqbMOnJG7NsQKsUoU5q8KoDnneY_GLQfrDKcg9w/s1600/newsf.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="334" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheRsqaBi7eO85-h8_tgDiEEMFyICCrc6-c4Zvm8YMvor-YYOiSXsP2ZA3z7g9tUJrgW9XznE6xKPj0ZJUS1MTHPemopNRj9_6SXpsmXqbMOnJG7NsQKsUoU5q8KoDnneY_GLQfrDKcg9w/s640/newsf.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are key notes behind this new change:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Customer Adoption:&lt;/b&gt;&lt;br /&gt;
After hearing many useful feedbacks Salesforce implemented this new design in such a way that it is easy, fast &amp;amp; successful for all customers for easy to adopt.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Easy Switching :&lt;/b&gt;&lt;br /&gt;
Now Salesforce unveiled this in new face of CRM package which is completely redesigned version. It is new kind of interface, Salesforce built which will let us feel something new over the existing layer but will keep supporting existing UI(classic version) so that we can easily switch in between both versions.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Design System:&lt;/b&gt;&lt;br /&gt;
Through lightning salesforce made process more faster using drag &amp;amp; drop concept to configure new design which clearly reflect clarity in idea,efficiency, consistency &amp;amp; beauty in it.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Scope:&lt;/b&gt;&lt;br /&gt;
It is just a starting with building CRM package over lightning and in future many more things are lined-up with new version.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Browser Support:&lt;/b&gt;&lt;br /&gt;
New version would be supportive on all browsers like IE 11, Safari version 8, most recent stable version of firefox &amp;amp; chrome. while using lower version of IE it will automatically switch to classic version.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;When it will be available?&lt;/b&gt;&lt;br /&gt;
It would be in our orgs in next Winter Release but it might be available on some pre release orgs for early access. There is a way to complete some lightning trails in order to be on priority for getting early access releases.&lt;br /&gt;
&lt;br /&gt;
For more detail watch the complete session here :&amp;nbsp;&lt;a href="https://www.salesforce.com/form/conf/events-global-preview.jsp"&gt;Meet the New Salesforce Live from San francisco&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://gotosalesforce.blogspot.com/2015/08/meet-new-salesforce.html</link><author>noreply@blogger.com (Sandeep Singhal)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF0BsKGFvczqA3o2j2CqI57mYnluosVIspJ8NVyFYjJ7oT2GDMLBkOU0Uq9rlYhCKNJUENzKWR9utrnysBmcUaY-d_aFlfE-by0-eDf5G0IQ6kGm_wEY6VwuZvl-qealurk4k-nCaoJX8/s72-c/newSF1.png" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6894206908194712402.post-4731004344602687858</guid><pubDate>Wed, 19 Aug 2015 17:13:00 +0000</pubDate><atom:updated>2015-08-19T22:43:22.870+05:30</atom:updated><title>Salesforce integration with Salesforce</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Accessing Apis of external system is call integration in simple words. Here I will talk about how salesforce org gets integrated with another salesforce org.
&lt;br/&gt;
Going forward I would call these two Salesforce orgs as Source org &amp; Target org. 
&lt;br/&gt;
&lt;br/&gt;
&lt;b&gt;Requirement:&lt;/b&gt; Requirement is to fetch user information from target org in to source org. 
&lt;br/&gt;
&lt;br/&gt;
&lt;b&gt;Step1.&lt;/b&gt; It is the master key point that always you have to build an App in Target Org so now you need to create a connected App.
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCqzWkGvnF7gGnLrvpf6GtuS0HnvSBgccHACQg0UO63Ap3Dse2AqGO9z33L2MQY1sQwArqIe5b7aXw7briuhuGkcIxP0DL5QBuRB20kCrqO14pV845FDvvolg7l_h9BwbATWhZ29o9K9g/s1600/SFS2sF1.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCqzWkGvnF7gGnLrvpf6GtuS0HnvSBgccHACQg0UO63Ap3Dse2AqGO9z33L2MQY1sQwArqIe5b7aXw7briuhuGkcIxP0DL5QBuRB20kCrqO14pV845FDvvolg7l_h9BwbATWhZ29o9K9g/s400/SFS2sF1.bmp" /&gt;&lt;/a&gt;&lt;/div&gt;
Once you have created Connected App then you get two important keys :&lt;br/&gt;
1. Client ID&lt;br/&gt;
2. Client Secret&lt;br/&gt;
&lt;br/&gt;
These are common keys which you get while creating connected Apps.
&lt;br/&gt;
&lt;br/&gt;
&lt;b&gt;Step2.&lt;/b&gt; Now you need to write a VF page and Apex class.
&lt;br/&gt;
&lt;b&gt;VF page&lt;/b&gt;
&lt;br /&gt;
&lt;pre class="cpp" name="code"&gt;
&lt;apex:page action="{!SF2SFIntegerationClassMethod}" controller="SF2SFIntegerationcontroller"&gt;
&lt;/apex:page&gt;
&lt;/pre&gt;

&lt;b&gt;Apex Class&lt;/b&gt;&lt;br/&gt;
&lt;b&gt;Note:&lt;/b&gt; Here you have to use client id, client secret &amp; redirection URI in below class:
 &lt;br /&gt;
&lt;pre class="cpp" name="code"&gt;

public class SF2SFIntegerationcontroller {

    string code;
public Pagereference SF2SFIntegerationClassMethod()
{   
    String clientId ='xxxxxx';// 
    String clientSecret = 'YYYYY';    
    String redirecurl = EncodingUtil.urlEncode('https://csopke1.ap1.visual.force.com/apex/SF2SFIntegeration','UTF-8.');
    
    if (ApexPages.currentPage().getParameters().containsKey('code') &amp;amp;&amp;amp; ApexPages.currentPage().getParameters().containsKey('code') != null) 
    {
        code = ApexPages.currentPage().getParameters().get('code');
        String oauthURlText = 'https://test.salesforce.com/services/oauth2/token?grant_type=authorization_code&amp;amp;client_id='+clientId+'&amp;amp;client_secret='+clientSecret+'&amp;amp;redirect_uri='+redirecurl+'&amp;amp;code='+code;
        Http h = new Http();
        HttpRequest req = new HttpRequest();
        req.setEndpoint(oauthURlText);
        req.setMethod('POST');
        req.setTimeout(60*1000);
        HttpResponse res = h.send(req);
        String resString = res.getBody();
        OAuth2 objAuthenticationInfo = (OAuth2)JSON.deserialize(res.getbody(), OAuth2.class);
                
        //USAGE
        HttpRequest req1 = new HttpRequest();
        req1.setHeader('Authorization', 'Bearer '+objAuthenticationInfo.access_token);
        req1.setEndpoint(objAuthenticationInfo.instance_url+'/services/data/v29.0/query/?q=SELECT+id,+name+FROM+user+limit+1');
        req1.setMethod('GET');
        req1.setTimeout(60*1000);
        HttpResponse res1 = h.send(req1);
        String resStringfromExternalOrg = res1.getBody();
        system.debug('------'+resStringfromExternalOrg);
        return null;
    }
    else
    {   PageReference pgRef = new PageReference('https://test.salesforce.com/services/oauth2/authorize?response_type=code&amp;amp;client_id='+clientId+'&amp;amp;redirect_uri='+redirecurl);
        return pgRef;
    }
    
  }
    /*To get aouthentication detail Wrapper*/
    public class OAuth2{
    
     public String id{get;set;}
     public String issued_at{get;set;}
     public String instance_url{get;set;}
     public String signature{get;set;}
     public String access_token{get;set;}    
    }

}
 &lt;/pre&gt;
&lt;br/&gt;
&lt;b&gt;Step3:&lt;/b&gt; Now you just need to execute VF page. You might need to setup remote site setting for URIs, you are hitting while executing Page. 
If any mediator screen asks to allow permission just allow it (to avoid it you need to use target org's credential in your logic) and see the magic in your debug log.
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5CUBk_j3IHDzPSSUUM9Z8PUvdSnLKO9jO0yBMF2zj4rPKGdHy6FkM-yfgKRpvvFwC1OQ0fAg1AsVfCieXawrefdfX0T5PFeq7LaM7lWY_03ROLVECs7XsbNfne9YqDrOMRfzdumz8zts/s1600/sf2sf2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5CUBk_j3IHDzPSSUUM9Z8PUvdSnLKO9jO0yBMF2zj4rPKGdHy6FkM-yfgKRpvvFwC1OQ0fAg1AsVfCieXawrefdfX0T5PFeq7LaM7lWY_03ROLVECs7XsbNfne9YqDrOMRfzdumz8zts/s400/sf2sf2.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br/&gt;
as these two orgs integrated so now You will get user information from target org in to source org.
&lt;/div&gt;</description><link>http://gotosalesforce.blogspot.com/2015/08/salesforce-integration-with-salesforce.html</link><author>noreply@blogger.com (Sandeep Singhal)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCqzWkGvnF7gGnLrvpf6GtuS0HnvSBgccHACQg0UO63Ap3Dse2AqGO9z33L2MQY1sQwArqIe5b7aXw7briuhuGkcIxP0DL5QBuRB20kCrqO14pV845FDvvolg7l_h9BwbATWhZ29o9K9g/s72-c/SFS2sF1.bmp" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6894206908194712402.post-8047512064563145473</guid><pubDate>Wed, 19 Aug 2015 11:29:00 +0000</pubDate><atom:updated>2015-08-24T00:56:54.707+05:30</atom:updated><title>Salesforce Meetup for Students March 2015</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
So... It was again a great opportunity for us to organize Salesforce meetup specially for students. many old faces continued and many new started with Salesforce platform.
&lt;div style="text-align: justify;"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwjppgnugNWBxj1QCEx5x5qkXsbAhz8MgxJRglgNM_pzgkNFy9U3Qs5Uo6AmAIeTGZJkNdfGlLCvHqe_OCKw4SbLBAG7kWVG_bSSm8evlKpcwbd38X-6c2ZUMR4smqavsvqqbU0U5CbJ0/s1600/IMG_20150321_130345.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="background-color: white; color: black; font-family: Times, Times New Roman, serif;"&gt;&lt;img border="0" height="236" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwjppgnugNWBxj1QCEx5x5qkXsbAhz8MgxJRglgNM_pzgkNFy9U3Qs5Uo6AmAIeTGZJkNdfGlLCvHqe_OCKw4SbLBAG7kWVG_bSSm8evlKpcwbd38X-6c2ZUMR4smqavsvqqbU0U5CbJ0/s1600/IMG_20150321_130345.jpg" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
I would like to express my great thanks to &lt;a href="https://www.facebook.com/thisisnotapril?fref=ts"&gt;April Nassi&lt;/a&gt;&amp;nbsp;and &lt;a href="https://www.facebook.com/forceguru?fref=ts"&gt;Ankit Arora&lt;/a&gt;&amp;nbsp;to support me in my this new sort of initiative.&lt;/span&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
Now coming to Meeting Notes:&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
In Last Meetup I discussed about Basic Salesforce as a cloud computing platform so in continuation&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;a href="https://www.facebook.com/profile.php?id=100000896861432&amp;amp;fref=ts"&gt;Deepak&amp;nbsp;Kumar&amp;nbsp;Shyoran&lt;/a&gt; brought-up many important key points we should start with in Salesforce. He related&amp;nbsp;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
Salesforce features with real time events. He explained every point with in such a nice way that Students&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
could not feel the gap of their current knowledge levels.&amp;nbsp;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuTikoHgEX0zcOO4h-IVflyQGCPVgfqfXzJJ8qoRjfsr4LIkcv1zdRBFIsQSYZkrq4CXH5oWU-zJ8P9IW8jjkFWzagtbj19Hb_JPRg7nFQTvSZxdpWt7UMlQqyM9aORg8QHNtxY_T0u84/s1600/20150321_120623.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="background-color: white; color: black; font-family: Times, Times New Roman, serif;"&gt;&lt;img border="0" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuTikoHgEX0zcOO4h-IVflyQGCPVgfqfXzJJ8qoRjfsr4LIkcv1zdRBFIsQSYZkrq4CXH5oWU-zJ8P9IW8jjkFWzagtbj19Hb_JPRg7nFQTvSZxdpWt7UMlQqyM9aORg8QHNtxY_T0u84/s1600/20150321_120623.jpg" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="background-color: white; font-family: Times, Times New Roman, serif;"&gt;&lt;span style="font-size: 14px; line-height: 18.6000003814697px; text-indent: 2px; white-space: nowrap;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-indent: 2px;"&gt;
&lt;div style="text-align: justify;"&gt;
It was not all about&amp;nbsp;theoretical&amp;nbsp;session but we moved further keeping people tuned-up&lt;/div&gt;
&lt;/div&gt;
&lt;div style="text-indent: 2px;"&gt;
&lt;div style="text-align: justify;"&gt;
by asking questions&amp;nbsp;with a new trivia series&amp;nbsp;and distributed very very cool stuff.&amp;nbsp;&lt;br /&gt;
&lt;span style="background-color: white; font-size: 14px; line-height: 18.6000003814697px; white-space: nowrap;"&gt;&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="text-indent: 2px;"&gt;
&lt;div style="text-align: justify;"&gt;
Moving ahead to next level I brought-up Salesforce1 in the discussion box. I tried my best to explain how&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="text-indent: 2px;"&gt;
&lt;div style="text-align: justify;"&gt;
Salesforce came in picture along with Salesforce. What was the need and how it is getting accomplished.&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="text-indent: 2px;"&gt;
&lt;div style="text-align: justify;"&gt;
I covered-up Salesforce1 basics.&lt;/div&gt;
&lt;/div&gt;
&lt;div style="text-indent: 2px;"&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="background-color: white; font-family: Times, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="text-indent: 2px;"&gt;
&lt;div style="text-align: justify;"&gt;
but as we know untill unless we see some thing going live in front of us we could not capture it at all so&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="text-indent: 2px;"&gt;
&lt;div style="text-align: justify;"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIPe-92DwlpmxSPHLpz0yUh2yrXNl7MFE2ENEFvL65Dif-5mfz3RodznJLt-xTd8WHupEgnXDFh1LHZoqOWK3IK7Vr2uZwkCqekK8GxNiNp3LxbGmYossJlCBoBWY56302LmXL6IMuEZM/s1600/IMG_20150321_124747.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="background-color: white; color: black; font-family: Times, Times New Roman, serif;"&gt;&lt;img border="0" height="236" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIPe-92DwlpmxSPHLpz0yUh2yrXNl7MFE2ENEFvL65Dif-5mfz3RodznJLt-xTd8WHupEgnXDFh1LHZoqOWK3IK7Vr2uZwkCqekK8GxNiNp3LxbGmYossJlCBoBWY56302LmXL6IMuEZM/s1600/IMG_20150321_124747.jpg" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="background-color: white; font-family: Times, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;a href="https://www.facebook.com/ashwaniarea?fref=ts"&gt;Ashwani&amp;nbsp;Soni&lt;/a&gt; demonstrated how we can switch to Salesforce 1 by performing very simple steps in&amp;nbsp;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
Salesforce.&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="background-color: white; font-family: Times, Times New Roman, serif; font-size: 14px; line-height: 18.6000003814697px; white-space: nowrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO0t8dVmd7jgTpRZB0dyKIBzcjWpn5MiO_s5XhaAMxTS5DBStxFuIi5aj1Q3p3vTcKNlJjcZHEcFk5A6P-l25JZaVDEdsimsQJq1N07jEBLtw3WPbIOmhWrQ13jp-s454oOaFmLgPfruQ/s1600/IMG_20150321_124642.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="background-color: white; color: black; font-family: Times, Times New Roman, serif;"&gt;&lt;img border="0" height="236" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO0t8dVmd7jgTpRZB0dyKIBzcjWpn5MiO_s5XhaAMxTS5DBStxFuIi5aj1Q3p3vTcKNlJjcZHEcFk5A6P-l25JZaVDEdsimsQJq1N07jEBLtw3WPbIOmhWrQ13jp-s454oOaFmLgPfruQ/s1600/IMG_20150321_124642.jpg" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
So would like to express great thanks to SKIT and all students who joined.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="background-color: white; font-family: Times, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
with regards...&lt;/div&gt;
&lt;/div&gt;sp</description><link>http://gotosalesforce.blogspot.com/2015/08/salesforce-meetup-for-students-march.html</link><author>noreply@blogger.com (Sandeep Singhal)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwjppgnugNWBxj1QCEx5x5qkXsbAhz8MgxJRglgNM_pzgkNFy9U3Qs5Uo6AmAIeTGZJkNdfGlLCvHqe_OCKw4SbLBAG7kWVG_bSSm8evlKpcwbd38X-6c2ZUMR4smqavsvqqbU0U5CbJ0/s72-c/IMG_20150321_130345.jpg" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6894206908194712402.post-1712711798874693796</guid><pubDate>Wed, 05 Aug 2015 21:00:00 +0000</pubDate><atom:updated>2016-12-24T03:48:11.401+05:30</atom:updated><title>Lightning Component</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
After Lighting connect one of &lt;a href="http://www.codespokes.com/2015/06/lightning-connect.html"&gt;previous blog&lt;/a&gt; now I would like to share some thoughts on lightning component. So what is lightning component?&lt;br /&gt;
"The Lightning Component framework is a UI framework for developing dynamic web apps for mobile and desktop devices".&lt;br /&gt;
&lt;br /&gt;
Salesforce has provided us Lightning App Builder to build lighting different Apps using components. The Lightning Component framework is built on the open-source Aura framework available at &lt;a href="http://github.com/forcedotcom/aura"&gt;http://github.com/forcedotcom/aura&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
So let me come to the practical example: &lt;br /&gt;
There are simple steps to build any lighting components: &lt;br /&gt;
Step1: You Name&amp;gt; Developer Console &amp;gt; File &amp;gt; New &amp;gt; Lightning Component. Here Provide Name of Component and click on Submit button.&lt;br /&gt;
&lt;br /&gt;
Step2: For developing lightning component we need to understand below parts mainly as lightning bundle.&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqAJRF-L6N9lF3iW2kjWirm2CwwsdFSLq8B0skOpXcfZUZtuzrOML2Iw2iMhxxu3pOPdb6hXot8-AHFA8l5alLmAPAGZlgaEYgJW7LdoJTwa-DlMNP_Kin8sSAlxMLwK2J1ojsljU77zo/s1600/lightning1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="209" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqAJRF-L6N9lF3iW2kjWirm2CwwsdFSLq8B0skOpXcfZUZtuzrOML2Iw2iMhxxu3pOPdb6hXot8-AHFA8l5alLmAPAGZlgaEYgJW7LdoJTwa-DlMNP_Kin8sSAlxMLwK2J1ojsljU77zo/s640/lightning1.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
a) component&lt;br /&gt;
b) controller&lt;br /&gt;
c) Helper&lt;br /&gt;
d) Style&lt;br /&gt;
&lt;br /&gt;
A component contains the UI part aura tags are being used along with other html tags and it is tightly coupled with Apex controller but here the interesting thing to understand is properties of component are not directly bounded with apex controller while there are two extra layers controller and helper which pays as middle layer. while Style plays role of providing CSS features.&lt;br /&gt;
&lt;br /&gt;
Here I have built lighting application &lt;br /&gt;
&lt;br /&gt;
Component :&lt;br /&gt;
&amp;nbsp;&amp;lt;aura:component access="global" controller="ShowRecordClass" implements="flexipage:availableForAllPageTypes"&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;lt;aura:attribute name="myAccounts" type="Sobject[]"&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;aura:handler action="{!c.getAccRecords}" default="Account" name="init" value="{!this}"&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;aura:attribute name="ObjectApiName" type="String"&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;aura:attribute name="ObjectLabel" type="String"&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;aura:attribute default="5" name="maximum_NoOfRecordstofetch" required="true" type="integer"&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;aura:handler action="{!c.getobjectLabel}" name="init" value="{!this}"&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Here are {!v.maximum_NoOfRecordstofetch}(or less) most recent created Records for Object : {!v.ObjectLabel}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/aura:handler&amp;gt;&amp;lt;/aura:attribute&amp;gt;&amp;lt;/aura:attribute&amp;gt;&amp;lt;/aura:attribute&amp;gt;&amp;lt;/aura:handler&amp;gt;&amp;lt;/aura:attribute&amp;gt;&amp;lt;/aura:component&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;div class="RecordTable"&amp;gt;&lt;br /&gt;
&amp;lt;div&amp;gt;&lt;br /&gt;
&amp;lt;aura:iteration items="{!v.myAccounts}" var="obj"&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/aura:iteration&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;table class="imagetable"&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;tbody&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;th class="thcls"&amp;gt;{!v.ObjectLabel} Id&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;th class="thcls"&amp;gt;{!v.ObjectLabel} Name&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;td class="tdcls"&amp;gt;&amp;lt;ui:outputtext value="{!obj.Id}"&amp;gt;&amp;lt;/ui:outputtext&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td class="tdcls"&amp;gt;&amp;lt;ui:outputtext value="{!obj.Name}"&amp;gt;&amp;lt;/ui:outputtext&amp;gt;&amp;lt;/td&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/tbody&amp;gt;&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Controller: 
&lt;br /&gt;
&lt;pre class="cpp" name="code"&gt;({
 getAccRecords : function(component, event, helper) {
  helper.fetchrecords(component);
 },
    getobjectLabel : function(component, event, helper) {
  helper.fetchobjectLabel(component);
 }
})
&lt;/pre&gt;
Helper
&lt;br /&gt;
&lt;pre class="cpp" name="code"&gt;({
    fetchobjectLabel : function(component) {
  var action = component.get("c.returnObjectLabel");
         action.setParams({
         sobjeApi : component.get("v.ObjectApiName")            
      });
            action.setCallback(this, function(response) {
            var state = response.getState();
            if (state === 'SUCCESS') {
            component.set("v.ObjectLabel", response.getReturnValue());                
            }
            });
            $A.enqueueAction(action);
 },
 fetchrecords : function(component) {
  var action = component.get("c.fetchRecord");
         action.setParams({
         sobjeApi : component.get("v.ObjectApiName"),
            numberofRecords : component.get("v.maximum_NoOfRecordstofetch")
      });
            action.setCallback(this, function(response) {
            var state = response.getState();
            if (state === 'SUCCESS') {
                console.log('=**=');
            component.set("v.myAccounts", response.getReturnValue());      
            }
            });
            $A.enqueueAction(action);
 }
    
})
&lt;/pre&gt;
Apex Controller
&lt;br /&gt;
&lt;pre class="cpp" name="code"&gt;Public Class ShowRecordClass{

@AuraEnabled
Public Static List&lt;sobject&gt; fetchRecord(String sobjeApi, Integer numberofRecords)
{
    List&lt;sobject&gt; LstOfAcc = new List&lt;sobject&gt;();
    LstOfAcc  = Database.query('select id, Name from '+sobjeApi+' Order by CreatedDate DESC limit '+numberofRecords);
    return LstOfAcc  ;
}
@AuraEnabled
Public Static String returnObjectLabel(String sobjeApi)
{
   String finalString  = Schema.getGlobalDescribe().get(sobjeApi).getDescribe().getLabel();
   if(finalString  != null &amp;amp;&amp;amp; finalString  !='')
       return finalString  ;
   else
        return sobjeApi;
}
}
&lt;/sobject&gt;&lt;/sobject&gt;&lt;/sobject&gt;&lt;/pre&gt;
Style:
&lt;br /&gt;
&lt;pre class="cpp" name="code"&gt;.THIS table.imagetable{
    font-family: verdana,arial,sans-serif;
 font-size:11px;
 color:#333333;
 border-width: 1px;
 border-color: #999999;
 border-collapse: collapse;
}
.THIS th.thcls {
    background:#b5cfd2 ;
 border-width: 1px;
 padding: 8px;
 border-style: solid;
 border-color: #999999;
}
.THIS td.tdcls {
    background:#dcddc0 ;
 border-width: 1px;
 padding: 8px;
 border-style: solid;
 border-color: #999999;
}
&lt;/pre&gt;
Now we can use this component in lightning Apps or lightning App builder.&lt;br /&gt;
&amp;lt;aura:application&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;c:showrecentcreatedrecords maximum_noofrecordstofetch="6" objectapiname="Account"&amp;gt;&lt;br /&gt;
&amp;lt;/c:showrecentcreatedrecords&amp;gt;&amp;lt;/aura:application&amp;gt;&lt;br /&gt;
Here I am using it in lightning App.

Here is the Lightning App preview. To preview go to App and click on preview in right hand side bar. There is one benefit that we can show more than 1000 items of single list on UI which just over come the limit of visualforce page.



&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqZM9TSrqMZWpn79d6cFbtN4PBANb7MBEJUzJxhX1X9w4aflsT3GV0qq9oepFb2mYBo6Q3lqEhyx1rfJgfZkK1mOlhRYBJF0i0et4vYjW9GpNYDy_FbqvWk7TH9QJIH3imIbonVgJY4Qs/s1600/lightning2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="112" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqZM9TSrqMZWpn79d6cFbtN4PBANb7MBEJUzJxhX1X9w4aflsT3GV0qq9oepFb2mYBo6Q3lqEhyx1rfJgfZkK1mOlhRYBJF0i0et4vYjW9GpNYDy_FbqvWk7TH9QJIH3imIbonVgJY4Qs/s640/lightning2.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://gotosalesforce.blogspot.com/2015/08/lightning-component.html</link><author>noreply@blogger.com (Sandeep Singhal)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqAJRF-L6N9lF3iW2kjWirm2CwwsdFSLq8B0skOpXcfZUZtuzrOML2Iw2iMhxxu3pOPdb6hXot8-AHFA8l5alLmAPAGZlgaEYgJW7LdoJTwa-DlMNP_Kin8sSAlxMLwK2J1ojsljU77zo/s72-c/lightning1.png" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6894206908194712402.post-6326714972704139316</guid><pubDate>Mon, 03 Aug 2015 21:17:00 +0000</pubDate><atom:updated>2015-08-04T02:47:43.840+05:30</atom:updated><title>Salesforce to Salesforce </title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
When it comes to deal with migration/sharing of data within salesforce orgs then no need to worry about. Salesforce provides a native feature Salesforce to Salesforce in short "S2S". 

It can also be used to create this data sharing relationship.

Lets take a example of two orgs org1 and org2 and we need to share Account and Opportunity Data within orgs then this can be done easily in below steps:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
Step1. Enable Feature Salesforce to Salesforce in org1 and  org2 both.&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
Note: Once it is  enabled it will be not be disabled.
Setup-&amp;gt; App Setup-&amp;gt; Salesforce to Salesforce&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvQXmlBcbNRC3sMd3qJEbtdt75pB-3bs8LkrKsrcLMf8PubiKadAg-lZJMb6GohW3_129FPATJiNYKj3XxFUNK-Z2gJ5PRbTW_ypLEY_QEe-sanyC6jGqsOHdyesaCZaJQRUG97wV4LZ8/s1600/s2s.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="85" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvQXmlBcbNRC3sMd3qJEbtdt75pB-3bs8LkrKsrcLMf8PubiKadAg-lZJMb6GohW3_129FPATJiNYKj3XxFUNK-Z2gJ5PRbTW_ypLEY_QEe-sanyC6jGqsOHdyesaCZaJQRUG97wV4LZ8/s320/s2s.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
Step2: Now create an Account and contact record with email id of contact person of org2&lt;br /&gt;
&lt;br /&gt;
Step3: Now Setup a connection in Salesforce org1 and send invitation to org2.
Note: if connection tab is not visible then please make it visible to current app.
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRp3278e2bH7iALVwFBzPYLfo_XJ3YqggguIAh52llhoy0CtOdg4LWubat0p6ofCtL0hIYYtdFyhBEwVL2MaFS3acrJSfqlh_U_LIgYLWCcpXx62tm11oZ1ZLTHXIbzRv3ECs8EKd_B6k/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="152" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRp3278e2bH7iALVwFBzPYLfo_XJ3YqggguIAh52llhoy0CtOdg4LWubat0p6ofCtL0hIYYtdFyhBEwVL2MaFS3acrJSfqlh_U_LIgYLWCcpXx62tm11oZ1ZLTHXIbzRv3ECs8EKd_B6k/s320/2.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEix4DyRBF3qQbWHTc0hAeLILTGGcPW0K8l9T2VugZdGFCwk2NiW4nRZg9iwqGcjSzFHbpTuNTkWcuytoD3-COpEZQw0MAxqhqMwg_D4sfsEYE7K6bMT47kpoclt0OrGLFibjmKisBH6BsI/s1600/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="72" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEix4DyRBF3qQbWHTc0hAeLILTGGcPW0K8l9T2VugZdGFCwk2NiW4nRZg9iwqGcjSzFHbpTuNTkWcuytoD3-COpEZQw0MAxqhqMwg_D4sfsEYE7K6bMT47kpoclt0OrGLFibjmKisBH6BsI/s320/3.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
Step4: An Email will be sent to email address provided on contact ask to insert in previous steps. Once we click on link of email body it will redirect us to login screen.&lt;br /&gt;
&lt;br /&gt;
Step5: Enter credential of org2 it will be redirected on invitation acceptance screen.&lt;br /&gt;
&lt;br /&gt;
Step6: Now Publish Account and Opportunity objects along with fields in org1.
&lt;span style="background-color: white; color: #333333; font-family: ProximaNovaRegular; font-size: 15px; line-height: 17px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="background-color: white; color: #333333; font-family: ProximaNovaRegular; font-size: 15px; line-height: 17px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjppFLvPZBHkmu97FriuiAXXAl8n0rpN35JMVNpQfDru-_e30frGwop014lyo-9aKCedTAXvhWfohZ8IW_BGNSy-Whn0Q_-nNHCpp-Omsvh3xsEKeRgVbMGlWUkoPZ_SKYNdopJla-U4kQ/s1600/4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="150" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjppFLvPZBHkmu97FriuiAXXAl8n0rpN35JMVNpQfDru-_e30frGwop014lyo-9aKCedTAXvhWfohZ8IW_BGNSy-Whn0Q_-nNHCpp-Omsvh3xsEKeRgVbMGlWUkoPZ_SKYNdopJla-U4kQ/s320/4.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWJhmO3D4yPH6JqUkVwr4LEwnyoKUBATT3qtHITWyLWjWbGpkvAKx6ncXhLXS9IJo8a0lM159r_HMJIsAaCXu_XcQ__5T3wv6B99PnX43PTrExmQ0wVCHfHd87waiu5dZrXecjF1ot3tE/s1600/5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="156" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWJhmO3D4yPH6JqUkVwr4LEwnyoKUBATT3qtHITWyLWjWbGpkvAKx6ncXhLXS9IJo8a0lM159r_HMJIsAaCXu_XcQ__5T3wv6B99PnX43PTrExmQ0wVCHfHd87waiu5dZrXecjF1ot3tE/s320/5.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
Step7: Now Subscribe objects in  org2 and keep field mapping with setting up auto accept.&lt;br /&gt;
Step8: Now we all set.&lt;br /&gt;
&lt;br /&gt;
Once we create Account ( with Opportunity record) and then in list view of Account click on "Forward to Connection". Select Connection name and proceed further allowing to forward opportunity data.

You will see in org2 same set of record will be created with same values filled in org1 (when fields are properly mapped).&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Limitations&lt;/b&gt;: 
Lookup IDs are not available for publishing. You can enable S2S for those fields by creating a formula field and then publishing the formula field.

&lt;br /&gt;
&lt;div&gt;
&lt;span style="background-color: white; color: #333333; font-family: ProximaNovaRegular; font-size: 15px; line-height: 17px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="background-color: white; color: #333333; font-family: ProximaNovaRegular; font-size: 15px; line-height: 17px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://gotosalesforce.blogspot.com/2015/08/salesforce-to-salesforce.html</link><author>noreply@blogger.com (Sandeep Singhal)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvQXmlBcbNRC3sMd3qJEbtdt75pB-3bs8LkrKsrcLMf8PubiKadAg-lZJMb6GohW3_129FPATJiNYKj3XxFUNK-Z2gJ5PRbTW_ypLEY_QEe-sanyC6jGqsOHdyesaCZaJQRUG97wV4LZ8/s72-c/s2s.png" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6894206908194712402.post-542121320153803515</guid><pubDate>Tue, 23 Jun 2015 04:51:00 +0000</pubDate><atom:updated>2015-06-23T10:21:16.105+05:30</atom:updated><title>One thing you must know about Junction Objects in Salesforce</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;Hi Devs, 

Here I brought-up some thing new I hope in very common topic Junction Object In Salesforce.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;So what I am talking about here is when we setup junction object and go to any of the master record and see related of detail records then there will not be edit link in front of record in the list until unless we have one custom field over that detail object.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;Let's take a example. 
I have two custom Objects Master1, Master2 now I am going to create one junction object under Master1 and Master2. 
&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3eY_sqPlJ9d_BzGTnwoWhU5ZWEhqNxxM49luEphZEwKiXTZ9UUi9niMvRhgwOxnfeMQQXJ7SFntGtML2esk3j_GyjzllClxiWHErhWgwSAzQSAdi2ndyvzIdA-3nOKUp1B-QiixT-ttM/s1600/junction.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3eY_sqPlJ9d_BzGTnwoWhU5ZWEhqNxxM49luEphZEwKiXTZ9UUi9niMvRhgwOxnfeMQQXJ7SFntGtML2esk3j_GyjzllClxiWHErhWgwSAzQSAdi2ndyvzIdA-3nOKUp1B-QiixT-ttM/s320/junction.png" /&gt;&lt;/a&gt;&lt;span style="font-family: Verdana, sans-serif; margin-left: 1em; margin-right: 1em;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;When I visit Master1 record then I observe that edit link is not there 
&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2LwcrJsSMjW5LDgll8Q52sOnc2KYpROv9KxD3p3wsyNl3d8ZVczkpbIbuwKVZUr6RuB0_udFTWkMw93ZiS8TcXGN-1Yq6DlmrtoKXpW6HNyQ1ju0UB7_lCxTmXYLf5NY8OSyFrIZeBRo/s1600/j1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2LwcrJsSMjW5LDgll8Q52sOnc2KYpROv9KxD3p3wsyNl3d8ZVczkpbIbuwKVZUr6RuB0_udFTWkMw93ZiS8TcXGN-1Yq6DlmrtoKXpW6HNyQ1ju0UB7_lCxTmXYLf5NY8OSyFrIZeBRo/s320/j1.png" /&gt;&lt;/a&gt;&lt;span style="font-family: Verdana, sans-serif; margin-left: 1em; margin-right: 1em;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;but if I view that junction record separately then I have Edit button on junction record page. 
&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGJLUq3gpywAZfe0EPdIwn3R4B-fbCgaalcVQOZZ9TProEewDGiF4lXB_MAqBp69JLPYCNZpsrkR5XsIm8mRH46c8FYtIx6Cseh9RWu9SAzRjSq-IITl_eKTIl8KFv-SIL7aP_5jc8_k8/s1600/j2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGJLUq3gpywAZfe0EPdIwn3R4B-fbCgaalcVQOZZ9TProEewDGiF4lXB_MAqBp69JLPYCNZpsrkR5XsIm8mRH46c8FYtIx6Cseh9RWu9SAzRjSq-IITl_eKTIl8KFv-SIL7aP_5jc8_k8/s320/j2.png" /&gt;&lt;/a&gt;&lt;span style="font-family: Verdana, sans-serif; margin-left: 1em; margin-right: 1em;"&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;So Here is the reason as I create a editable custom field on junction object 
&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdimD2QGzXhq5I1KrZnpMVKXAbZ9mCN8TpvfW3Lx_Pa0VKzh_79ZcsDtso8akjXpEVEEixkqdkfwwWE-J2gTrup2icflG2Gsq2Lfjr40bDvzbOhUgRiuN49uS-lAYhj2CQaFOI821cjr8/s1600/j3.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdimD2QGzXhq5I1KrZnpMVKXAbZ9mCN8TpvfW3Lx_Pa0VKzh_79ZcsDtso8akjXpEVEEixkqdkfwwWE-J2gTrup2icflG2Gsq2Lfjr40bDvzbOhUgRiuN49uS-lAYhj2CQaFOI821cjr8/s320/j3.png" /&gt;&lt;/a&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;div style="text-align: justify;"&gt;
"Edit" liks gets appeared in the related list but it is not necessary to keep that field on layout keep it behind the screen.&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjukMCLAWEreRy-wyNgSLzganDF8PFKWY9e5XQzr2gFYwZ7QndNC7a7ny5Tb_pvoU_itNUxvqVGnyLhlFC3FZPi-4qkLm1QbAEGlYFJyn4h2XMOACa_xM2QJxtiNiiyWZpcbIVBSGZfZwk/s1600/j4.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjukMCLAWEreRy-wyNgSLzganDF8PFKWY9e5XQzr2gFYwZ7QndNC7a7ny5Tb_pvoU_itNUxvqVGnyLhlFC3FZPi-4qkLm1QbAEGlYFJyn4h2XMOACa_xM2QJxtiNiiyWZpcbIVBSGZfZwk/s320/j4.png" /&gt;&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://gotosalesforce.blogspot.com/2015/06/one-thing-you-must-know-about-junction.html</link><author>noreply@blogger.com (Sandeep Singhal)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3eY_sqPlJ9d_BzGTnwoWhU5ZWEhqNxxM49luEphZEwKiXTZ9UUi9niMvRhgwOxnfeMQQXJ7SFntGtML2esk3j_GyjzllClxiWHErhWgwSAzQSAdi2ndyvzIdA-3nOKUp1B-QiixT-ttM/s72-c/junction.png" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6894206908194712402.post-5921425969900738581</guid><pubDate>Sun, 21 Jun 2015 12:42:00 +0000</pubDate><atom:updated>2015-06-21T18:12:33.466+05:30</atom:updated><title>Lightning Connect</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;Its a time to connect salesforce to other system for data perspective then easiest option provided by Salesforce is lighting connect.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;It connects and access data from external sources with point-and-click simplicity. It Incorporate data from legacy systems (SAP, Oracle, Microsoft, etc.)  in real time in Salesforce application objects.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;How to set-up :&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;There are two type of entities which need to setup in order to work on lightning connect.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;1. External Data Source&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;2.  External Object&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;Goto &lt;b&gt;Setup&amp;gt;Build&amp;gt;External Data Source&lt;/b&gt; and Create a new External Data Source which will keep reference of an external hosted data source.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;1. Select option "Lightning Connect: OData 2.0" then Salesforce connect to external data server.
The external data must be exposed by a service that uses Open Data Protocol (OData) Version 2.0. Such a service is called&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;an OData producer.&amp;nbsp;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirc-jQRFg8FR4PYGM2MeepxvPnXROHNeGhcn-Jb7mODVeKCjUP-kTzMnkK31wPxw0sDfrTrpFPHcnAWaAT6teKOiDZN1OyMkQSxZ4-B3zo6wxa8lmbpRIECY_aG1Y5vWjUDc7rUoZHA-I/s1600/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="368" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirc-jQRFg8FR4PYGM2MeepxvPnXROHNeGhcn-Jb7mODVeKCjUP-kTzMnkK31wPxw0sDfrTrpFPHcnAWaAT6teKOiDZN1OyMkQSxZ4-B3zo6wxa8lmbpRIECY_aG1Y5vWjUDc7rUoZHA-I/s400/3.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;span style="background-color: white; color: #212121; line-height: 24px;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;2. Select identity Type "Anonymous" then no authentication is required but if you select other option than it will ask authentication from different ways like Oauth2.0, password authentication.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class="" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;In my example 
I have put one OData supported data and then select Anonymous identity types and put URL with&amp;nbsp;

&lt;/span&gt;&lt;/div&gt;
&lt;div class="" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;b&gt;http://services.odata.org/V2/(S(z03hdcomixoupwtkwk3as00w))/OData/OData.svc/&lt;/b&gt;&amp;nbsp;
&lt;/span&gt;&lt;/div&gt;
&lt;div class="" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;After creating this external Data Source, we need to create External Object. 
For this I have clicked on Validate and Sync button and I was redirected to next screen where 
I found table with option to select object data I wanted to inherit.  Once I select object and click on Sync option, external Object got created. 
&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpER1WYputA6hAhrKSSWfheP6wdQvVgcAwZ9VmqvqLl1TY5BiyTqacwfLnNoQ7gR1QCW_w3UI_qWnHwOyIrbuRT9nuwtKHCxJADmM9CcK2DBxZ8rr5lSYuTwH6HFsT4V5i8cdicxS5yB0/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="241" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpER1WYputA6hAhrKSSWfheP6wdQvVgcAwZ9VmqvqLl1TY5BiyTqacwfLnNoQ7gR1QCW_w3UI_qWnHwOyIrbuRT9nuwtKHCxJADmM9CcK2DBxZ8rr5lSYuTwH6HFsT4V5i8cdicxS5yB0/s400/1.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;span style="color: #212121;"&gt;&lt;span style="background-color: white; line-height: 24px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class="" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;Here I have selected two objects "Categories" and "Products" so resulting  two external objects have been created.&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;These External objects can not be modified within Salesforce but these synced with external system.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFB9vRqrzJXWx0xq8fIl1_g_fu0x2YowpyKatuz0xWeoJttlp3TbbDqXTFTe4qp8Wz-AAgx1txE4LelrF550kyIvYT1SD1-FkBEItAZNt1SLpsorqBKEkVH46W7xkLz9SvfkuRHwlWl7c/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="50" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFB9vRqrzJXWx0xq8fIl1_g_fu0x2YowpyKatuz0xWeoJttlp3TbbDqXTFTe4qp8Wz-AAgx1txE4LelrF550kyIvYT1SD1-FkBEItAZNt1SLpsorqBKEkVH46W7xkLz9SvfkuRHwlWl7c/s400/2.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;we can read the data either via visiting record file or applying SOQL.
This data does not count against Salesforce storage limit.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="color: #212121; line-height: 24px;"&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Here is data :&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_KkVtnalxm3m9qbqO6zFuyoYG5MAJR7TLv-LxhCnQ_g49xt8YdfIrcbn82NKI4pZE-R-EpLtP-Q41l5k5TZsQ0t0Zp-l1FJsaY9e4zI3EKCploUuZeQDx-iurhHp4VKPvoWIBfO9C3_Y/s1600/4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="71" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_KkVtnalxm3m9qbqO6zFuyoYG5MAJR7TLv-LxhCnQ_g49xt8YdfIrcbn82NKI4pZE-R-EpLtP-Q41l5k5TZsQ0t0Zp-l1FJsaY9e4zI3EKCploUuZeQDx-iurhHp4VKPvoWIBfO9C3_Y/s400/4.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="color: #212121; font-family: SalesforceSansRegular, Arial, sans-serif; font-size: 15px; line-height: 24px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://gotosalesforce.blogspot.com/2015/06/lightning-connect.html</link><author>noreply@blogger.com (Sandeep Singhal)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirc-jQRFg8FR4PYGM2MeepxvPnXROHNeGhcn-Jb7mODVeKCjUP-kTzMnkK31wPxw0sDfrTrpFPHcnAWaAT6teKOiDZN1OyMkQSxZ4-B3zo6wxa8lmbpRIECY_aG1Y5vWjUDc7rUoZHA-I/s72-c/3.png" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6894206908194712402.post-4451690363807639065</guid><pubDate>Thu, 19 Mar 2015 20:23:00 +0000</pubDate><atom:updated>2015-03-20T02:00:37.655+05:30</atom:updated><title>Trailhead over force.com Basics</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Whenever we move ahead to learn a new technology or platform we firstly look for basic level tutorial. How it would be great if it come along with examples and challenges to check our knowledge.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
So Trailhead is formed in such a way that gives us a structured way of learning Salesforce with different - different modules.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
I like module "Force.com Basics" most. Trailhead has categorized it in three simple steps&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
1. &lt;a href="https://developer.salesforce.com/trailhead/starting_force_com/starting_intro"&gt;Introduction to Force.com&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
2. &lt;a href="https://developer.salesforce.com/trailhead/starting_force_com/starting_tour"&gt;Navigation Steps&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
3. &lt;a href="https://developer.salesforce.com/trailhead/starting_force_com/starting_developer_console"&gt;Developer console&lt;/a&gt;.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
On very first time we badly&amp;nbsp;need&amp;nbsp;an introduction of platform or feature forgetting started with it. In Trailhead it is defined in below way :&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
a) Signup process&lt;/div&gt;
&lt;div&gt;
b) first App Creation explained in very simple steps it shows power of "Point &amp;amp; click process"&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
c) then explained some general areas and terminologies.&lt;/div&gt;
&lt;div&gt;
&lt;img alt="The Force.com signin page." height="228" src="https://res.cloudinary.com/hy4kyit2a/image/upload/v1412123048/doc/trailhead/trailhead/images/starting_signup.png" width="320" /&gt;&lt;/div&gt;
&lt;div&gt;
Moving ahead Trailhead presents navigation steps of "setup sidebar" to us it is just like a library of features salesforce provides so far and enabled in our org. Each and every option is very well defined and snapshots were such informative for us.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;img alt="The username menu, with Setup highlighted" height="68" src="https://res.cloudinary.com/hy4kyit2a/image/upload/v1412123048/doc/trailhead/dev_guides/appx_dev/images/setup_username_menu.png" width="320" /&gt;&lt;br /&gt;
&lt;img alt="The Developer Edition setup page." height="161" src="https://res.cloudinary.com/hy4kyit2a/image/upload/v1412123048/doc/trailhead/trailhead/images/starting_setuplogin.png" width="320" /&gt;&lt;/div&gt;
&lt;div&gt;
Last but not least it would be cherry on the cake for all code lovers. Debugging is most important in order to verify that our logic works correctly.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
It is a collection of tools which has its own capabilities like&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
a) Executing logic&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
b) logging&lt;/div&gt;
&lt;div&gt;
c) Running Test cases&lt;/div&gt;
&lt;div&gt;
d) Interaction with database using query editor&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
... and many more.&lt;/div&gt;
&lt;div&gt;
&lt;img alt="Force.com Developer Console layout" height="218" src="https://res.cloudinary.com/hy4kyit2a/image/upload/v1412123048/doc/trailhead/help/images/code_dev_console_layout.png" width="320" /&gt;&lt;/div&gt;
&lt;div&gt;
So I really love this module which is backbone of Salesforce technology and must to learn.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
In every topic coverage area we meet with all challenges available for us and make us more focused and attached with the module topic we just covered.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Thanks Trainhead | Go Trainhead | Learn something new&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://gotosalesforce.blogspot.com/2015/03/trailhead-over-forcecom-basics.html</link><author>noreply@blogger.com (Sandeep Singhal)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6894206908194712402.post-2770517572282922355</guid><pubDate>Sat, 07 Feb 2015 22:42:00 +0000</pubDate><atom:updated>2015-02-08T04:12:49.341+05:30</atom:updated><title>Salesforce Components Daily Automatic Backup Process</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;Dev Folks,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;Being a developer components management are most important part for us in any application. So we need backup always.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;But again taking-up a backup is very tedious/time taking challenge. So here I am presenting a process to setup &lt;b&gt;Salesforce Components Daily Automatic Backup&lt;/b&gt;.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;For this first of all, you need ANT setup in our machine. If you want to know how to setup ANT, please visit one of my previous blog 
&lt;a href="http://www.codespokes.com/2011/06/how-to-use-ant-in-salesforce.html"&gt;How to Setup ANT&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;Moving ahead now we need to setup a folder like below&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnJ8xxvft1nSzCfoevJiVjnwStzFhavASTbcB9gSWe003t3QvQm7ASSUT-q6Rrh0a5QcoBEIlH23OMw_4R_xowOXnAmAyylaXWgp2FGnqkJqnlmW20TStln87DdIxlDAgBASLeoLvcaX0/s1600/for+blog.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnJ8xxvft1nSzCfoevJiVjnwStzFhavASTbcB9gSWe003t3QvQm7ASSUT-q6Rrh0a5QcoBEIlH23OMw_4R_xowOXnAmAyylaXWgp2FGnqkJqnlmW20TStln87DdIxlDAgBASLeoLvcaX0/s320/for+blog.png" height="96" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;In above folder we should have:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;1.) Build.xml&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;2.) Build.properties&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;3.) run.bat&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;for All sample files you can &lt;a href="https://drive.google.com/folderview?id=0B-1sM1xjBchSSmlqbzRxN3VwZ0k&amp;amp;usp=drive_web"&gt;click here&lt;/a&gt;&amp;nbsp;.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;Now it is time to our schedule backup script in windows scheduler. For this Please follow below steps&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;Step1. Open Windows Scheduler-&amp;gt;Create Basic Task-&amp;gt; Provide Name of the Task&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif; margin-left: 1em; margin-right: 1em;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiEcFgH8lEpW4eA99FRmnCVbfgLn3ihE6Jn6rkCkimvKc3FxCtbwWbCx8-cZXd71NhL0tgQQjZbAzYbUJDhtxXa-tIG1-oLAT9ia7zPF_r86J_IsjoF_KSFHzVlXYeNuGqWqTVryuXgf0/s1600/step1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiEcFgH8lEpW4eA99FRmnCVbfgLn3ihE6Jn6rkCkimvKc3FxCtbwWbCx8-cZXd71NhL0tgQQjZbAzYbUJDhtxXa-tIG1-oLAT9ia7zPF_r86J_IsjoF_KSFHzVlXYeNuGqWqTVryuXgf0/s320/step1.png" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;Step2 : In Trigger select "Daily"&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;Step3 : In Action fill what time you want to schedule it&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;Step4 : In Action "Start Program"&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;Step5 : In "Start Program" provide path of run.bat
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo4SAAf68amD-SYecuqMrvjF-noYDVkBPhne1v2ZLqI7_6wJ-JskzhtKpFN6xLpnEnA4SbTCI5bqZTgCDFs1Z86FQactOuNvI_L6zQ5mR_Ok7Zo_Qnig61HZarvO28Hz6kBE6JQbn1N0k/s1600/STEP2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo4SAAf68amD-SYecuqMrvjF-noYDVkBPhne1v2ZLqI7_6wJ-JskzhtKpFN6xLpnEnA4SbTCI5bqZTgCDFs1Z86FQactOuNvI_L6zQ5mR_Ok7Zo_Qnig61HZarvO28Hz6kBE6JQbn1N0k/s320/STEP2.png" height="277" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;Step6 : click on finish.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Trebuchet MS, sans-serif;"&gt;Now all Set and so enjoy your work without worrying about your backup. 
&lt;/span&gt;&lt;/div&gt;
</description><link>http://gotosalesforce.blogspot.com/2015/02/salesforce-components-daily-automatic.html</link><author>noreply@blogger.com (Sandeep Singhal)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnJ8xxvft1nSzCfoevJiVjnwStzFhavASTbcB9gSWe003t3QvQm7ASSUT-q6Rrh0a5QcoBEIlH23OMw_4R_xowOXnAmAyylaXWgp2FGnqkJqnlmW20TStln87DdIxlDAgBASLeoLvcaX0/s72-c/for+blog.png" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6894206908194712402.post-4169368438036482503</guid><pubDate>Mon, 18 Aug 2014 20:48:00 +0000</pubDate><atom:updated>2014-08-19T02:21:31.263+05:30</atom:updated><title>Sample Package.xml for Migration  for ANT in Salesforce Part#2</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hi Folks,&lt;br /&gt;
Here I would like to continue with &lt;a href="http://www.codespokes.com/2014/03/sample-packagexml-for-migration-for-ant.html"&gt;one&lt;/a&gt; of my previous blogs. Now I am adding some more useful components to package.xml.&lt;br /&gt;
visit first articel :&lt;a href="http://www.codespokes.com/2014/03/sample-packagexml-for-migration-for-ant.html"&gt; Sample Package.xml for Migration for ANT in Salesforce Part#1&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Here is the list:&lt;br /&gt;
1. Workflow Email Alert&lt;br /&gt;
2. Workflow field Update&lt;br /&gt;
3. Workflow Rule&lt;br /&gt;
4. Custom Button&lt;br /&gt;
5. Report&lt;br /&gt;
6. ReportType&lt;br /&gt;
7. PageLayout

&lt;br /&gt;
&lt;pre class="cpp" name="code"&gt;&lt;package xmlns="http://soap.sforce.com/2006/04/metadata"&gt;
    &lt;types&gt;
           &lt;members&gt;ObjectAPI.EmailAlertUniqueName&lt;/members&gt;
           &lt;name&gt;WorkflowAlert&lt;/name&gt;
    &lt;/types&gt;
    &lt;types&gt;
    &lt;members&gt;ObjectAPI.fielUpdateUniqueName&lt;/members&gt;
           &lt;name&gt;WorkflowFieldUpdate&lt;/name&gt;
    &lt;/types&gt; 
    &lt;types&gt;
           &lt;members&gt;ObjectAPI.workflowruleUniqueName&lt;/members&gt;
           &lt;name&gt;WorkflowRule&lt;/name&gt;
    &lt;/types&gt;
    &lt;types&gt;
           &lt;members&gt;ObjectAPI.customButtonOrLinkName&lt;/members&gt;
           &lt;name&gt;WebLink&lt;/name&gt;
    &lt;/types&gt;
    &lt;types&gt;
           &lt;members&gt;ReportuniqueName&lt;/members&gt;
           &lt;name&gt;ReportType&lt;/name&gt;
    &lt;/types&gt;
    &lt;types&gt;
           &lt;members&gt;ReportFolder/ReportUniqueName&lt;/members&gt;
           &lt;name&gt;WebLink&lt;/name&gt;
    &lt;/types&gt;
    &lt;types&gt;
           &lt;members&gt;ObjectAPI-PageLayoutName&lt;/members&gt;
           &lt;name&gt;Layout&lt;/name&gt;
    &lt;/types&gt;
    &lt;version&gt;26.0&lt;/version&gt;
&lt;/package&gt;
&lt;/pre&gt;
&lt;/div&gt;
</description><link>http://gotosalesforce.blogspot.com/2014/08/sample-packagexml-for-migration-for-ant.html</link><author>noreply@blogger.com (Sandeep Singhal)</author><thr:total>0</thr:total></item></channel></rss>