tag:blogger.com,1999:blog-67630383231454945542024-03-19T03:32:20.119-07:00Grab the ForceGrasp, learn, share, discuss the ideas on force.com platform. Salesforce - the sky without limit, consume as much you can and share it under one umbrella.Praful Gadgehttp://www.blogger.com/profile/15933700723096790977noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-6763038323145494554.post-87053488305629357482016-10-11T15:41:00.000-07:002016-10-11T15:41:29.882-07:00Winter ‘17 – Lightning Data Services, A Technical primer<div dir="ltr" style="text-align: left;" trbidi="on">
Hello Readers and Developers!<br />
<br />
Writing this blog after long time - I worked on Lightning Components and Communities extensively in past 1 year. However, there are many new things getting evolved by Salesforce and this blog will be focused on one of that update - Lightning Data Services.<br />
<br />
Lightning Data Services - were available before couple of months but in beta mode. However, by Winter '17 Salesforce released it and it is now available in all org with Winter '17 release.<br />
<br />
This blog was written for <a href="http://www.trekbin.com/" target="_blank">Trekbin</a>, you can visit here to read further - <a href="http://www.trekbin.com/winter-17-lightning-data-services-technical-primer/">http://www.trekbin.com/winter-17-lightning-data-services-technical-primer/</a><br />
<br />
Please feel free to share your feedback.</div>
Praful Gadgehttp://www.blogger.com/profile/15933700723096790977noreply@blogger.com1tag:blogger.com,1999:blog-6763038323145494554.post-25888031824412804422015-12-23T08:29:00.000-08:002015-12-23T08:47:31.801-08:00Spring ‘16 features!!<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="line-height: 1.2; margin-bottom: 13pt; margin-top: 0pt; text-align: center;">
<div style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif; line-height: 1.2; text-align: left;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif; line-height: 1.2; text-align: left;">Hi everyone!</span></div>
</div>
<span style="font-family: Arial, Helvetica, sans-serif;">Just wanted to highlight few of the essential and </span><span style="font-family: Arial, Helvetica, sans-serif;">appealing features of Salesforce Spring '16. Most of these are not yet GA but will be available soon and will be ready to use.</span><br />
<b style="font-weight: normal;"><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></b>
<br />
<ol style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.5; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Create metadata in bulk using custom metadata loader - check how to use this - </span><a href="https://github.com/haripriyamurthy/CustomMetadataLoader" style="text-decoration: none;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">https://github.com/haripriyamurthy/CustomMetadataLoader</span></a><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span></span></div>
</li>
<li dir="ltr" style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.5; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Global Picklists - </span><a href="http://goo.gl/3qFdnX" style="text-decoration: none;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">http://goo.gl/3qFdnX</span></a><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span></span></div>
</li>
<li dir="ltr" style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.5; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Use @future to Avoid the Dreaded MIXED_DML_OPERATION Error in Apex Tests - </span><a href="http://goo.gl/jJBuWj" style="text-decoration: none;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">http://goo.gl/jJBuWj</span></a></span></div>
</li>
<li dir="ltr" style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.5; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">setCreatedDate method in test class - </span><a href="http://goo.gl/yeHg0H" style="text-decoration: none;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">http://goo.gl/yeHg0H</span></a><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span></span></div>
</li>
<li dir="ltr" style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.5; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SandboxPostCopy interface - to run script after a sandbox is created or refreshed - </span><a href="https://goo.gl/F7lKDG" style="text-decoration: none;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">https://goo.gl/F7lKDG</span></a><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span></span></div>
</li>
<li dir="ltr" style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.5; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Broadcast Groups in chatter - </span><a href="http://goo.gl/r8LXwI" style="text-decoration: none;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">http://goo.gl/r8LXwI</span></a><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span></span></div>
</li>
<li dir="ltr" style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.5; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Access your Box files in Salesforce using Files Connect for Box (Pilot) - </span><a href="http://goo.gl/3vkzga" style="text-decoration: none;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">http://goo.gl/3vkzga</span></a><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span></span></div>
</li>
<li dir="ltr" style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.5; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Use Files without enabling Chatter - </span><a href="http://docs.releasenotes.salesforce.com/en-us/spring16/release-notes/rn_files_without_chatter.htm" style="text-decoration: none;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">http://goo.gl/RVkPjP</span></a><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span></span></div>
</li>
<li dir="ltr" style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.5; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Track User Identity Verifications - </span><a href="http://goo.gl/IwmMA1" style="text-decoration: none;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">http://goo.gl/IwmMA1</span></a></span></div>
</li>
<li dir="ltr" style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.5; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Wave Application, Wave Dataset components are now available for change sets - </span><a href="http://goo.gl/68SFyI" style="text-decoration: none;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">http://goo.gl/68SFyI</span></a><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span></span></div>
</li>
<li dir="ltr" style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.5; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Reorder criteria in Process Builder using Drag and Drop - </span><a href="http://goo.gl/ab9IC2" style="text-decoration: none;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">http://goo.gl/ab9IC2</span></a></span></div>
</li>
<li dir="ltr" style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.5; margin-bottom: 12pt; margin-top: 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">DISTANCE() Support with Location-based SOQL Queries - </span><a href="http://goo.gl/6qaOWF" style="text-decoration: none;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">http://goo.gl/6qaOWF</span></a><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span></span></div>
</li>
</ol>
<b style="font-weight: normal;"><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></b>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 13pt; margin-top: 0pt; text-align: center;">
<span style="background-color: transparent; font-size: 32px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="font-family: Arial, Helvetica, sans-serif;">Important links</span></span></div>
<br />
<ol style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.5; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Salesforce Spring ’16 Release Notes - </span><a href="http://goo.gl/5HCpIm" style="text-decoration: none;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">http://goo.gl/5HCpIm</span></a><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span></span></div>
</li>
<li dir="ltr" style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.5; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Sign up for Spring '16 Pre-Release org - </span><a href="https://goo.gl/0LZ87W" style="text-decoration: none;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">https://goo.gl/0LZ87W</span></a><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span></span></div>
</li>
<li dir="ltr" style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.5; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Spring '16 releases videos - </span><a href="https://www.youtube.com/playlist?list=PLjJeA2SstEtKYnSkOypR5O9QZuucfJWrD" style="text-decoration: none;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">https://www.youtube.com/playlist?list=PLjJeA2SstEtKYnSkOypR5O9QZuucfJWrD</span></a></span></div>
</li>
<li dir="ltr" style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.5; margin-bottom: 12pt; margin-top: 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Spring '16 Sandbox Preview Instructions - </span><span style="background-color: transparent; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"><a href="https://help.salesforce.com/HTViewSolution?id=000231420&language=en_US" style="text-decoration: none;">https://help.salesforce.com/HTViewSolution?id=000231420&language=en_US</a></span></span></div>
</li>
</ol>
<div>
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-size: 13.3333px;"><br /></span></span></div>
<div>
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-size: 13.3333px;">Please share your valuable feedback! </span></span></div>
<div>
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-size: 13.3333px;"><br /></span></span></div>
<div>
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-size: 13.3333px;"><br /></span></span></div>
</div>
Praful Gadgehttp://www.blogger.com/profile/15933700723096790977noreply@blogger.com0tag:blogger.com,1999:blog-6763038323145494554.post-72589794991329333472015-08-10T03:29:00.003-07:002015-08-27T17:05:49.063-07:00Lightning Desktop - Overview<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">Salesforce introduced it's mobile version, Salesforce1 in Dreamforce '13. </span><span style="font-family: Arial, Helvetica, sans-serif;">But if you want to survive in this rapidly changing world, you need to be updated!! </span><br />
<span style="font-family: Arial, Helvetica, sans-serif;">That's what Salesforce following from a decade and so it's still at top of the ladder of CRMs.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">Salesforce now came up with its all new sleek, modern interface, drool-worthy <b><span style="color: orange;">Lightning Experience/</span></b></span><b style="font-family: Arial, Helvetica, sans-serif;"><span style="color: orange;">Lightning Desktop </span></b><span style="font-family: Arial, Helvetica, sans-serif;">- similar</span><span style="font-family: Arial, Helvetica, sans-serif;"> UI for all devices. Lightning Desktop is an entire new face of Saleforce compatible with </span><span style="font-family: Arial, Helvetica, sans-serif;">mobiles, tablets and desktops.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">Today, curtains were officially dropped for entire Salesforce family from San Francisco, with <a href="https://www.salesforce.com/form/conf/events-global-preview.jsp" target="_blank">a grand event followed by summary from it's stakeholders</a>!</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">Let's have a look at few revamped screens.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2Xdz_BEWmd3pvt1t8RFTHhalj7rLxnyAYFB68Ou43rVEXRn2IyuKNGpvnciMKJccC4qE5h9nae48BMu8BFV8jWaHKKxrCU1szCc_xNpSm5H1UflfLa2nkpWV-GzGpFdJ3rdwdbLVEOhs/s1600/Lightning+Desktop+-+Home.png" imageanchor="1" style="margin-left: auto; margin-right: auto;" target="_blank"><img alt="Lightning Desktop Home" border="0" height="224" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2Xdz_BEWmd3pvt1t8RFTHhalj7rLxnyAYFB68Ou43rVEXRn2IyuKNGpvnciMKJccC4qE5h9nae48BMu8BFV8jWaHKKxrCU1szCc_xNpSm5H1UflfLa2nkpWV-GzGpFdJ3rdwdbLVEOhs/s400/Lightning+Desktop+-+Home.png" title="Lightning Desktop - Home" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif; font-size: small;">Lightning Desktop Home</span></td></tr>
</tbody></table>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmE_O30cwSDAoTx99C9Q417_pk-jdt2yebL7C_SIRsjtnZXMuxzmLQoH_QQ9cddDRxKJK9U9SEXSu-Zrip4_BamyDSyzVBrxnz_b-ERAjwPBD6C9GRRCzNwguQLWk7-5HsfnQdSqyw9HI/s1600/Lightning+Desktop+-+List+View.png" imageanchor="1" style="margin-left: auto; margin-right: auto;" target="_blank"><img alt="List View" border="0" height="223" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmE_O30cwSDAoTx99C9Q417_pk-jdt2yebL7C_SIRsjtnZXMuxzmLQoH_QQ9cddDRxKJK9U9SEXSu-Zrip4_BamyDSyzVBrxnz_b-ERAjwPBD6C9GRRCzNwguQLWk7-5HsfnQdSqyw9HI/s400/Lightning+Desktop+-+List+View.png" target="_blank" title="List View" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-family: Arial, Helvetica, sans-serif; font-size: small;">List View</span></td></tr>
</tbody></table>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiquoL3-ZJMUvL8cuuY04EcY-0RTrkwu6MdcOdlVTGhr7eOWRturXrovzk3Zlv6ucMkZc4pXGinavlfZxblLZDAk7utCNTfE_SpGOfJSv5GLrhet9mebi9yyjBA1-XekSOPuG_723f9RFs/s1600/Lightning+Desktop+-+Opportunity+detail+layout.png" imageanchor="1" style="margin-left: auto; margin-right: auto;" target="_blank"><img alt="Opportunity detail layout" border="0" height="223" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiquoL3-ZJMUvL8cuuY04EcY-0RTrkwu6MdcOdlVTGhr7eOWRturXrovzk3Zlv6ucMkZc4pXGinavlfZxblLZDAk7utCNTfE_SpGOfJSv5GLrhet9mebi9yyjBA1-XekSOPuG_723f9RFs/s400/Lightning+Desktop+-+Opportunity+detail+layout.png" title="Opportunity detail layout" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-family: Arial, Helvetica, sans-serif; font-size: small;">Opportunity detail layout</span></td></tr>
</tbody></table>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoH_5nt4L7NvXSdu-Ni9YQAsSHxuYhuN2p1pndaNCjk80xShPtlFYgc9zkqsS3mUmee7oqunAovRK6zWCEGDnLpqUM6WedRQaC7HjKlCv9CRiK0_D4hfIjLvSNNGMkqxwf3zxMBzhQt68/s1600/Lightning+Desktop+-+Lead+detail+layout.png" imageanchor="1" style="margin-left: auto; margin-right: auto;" target="_blank"><img alt="Lead detail layout" border="0" height="223" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoH_5nt4L7NvXSdu-Ni9YQAsSHxuYhuN2p1pndaNCjk80xShPtlFYgc9zkqsS3mUmee7oqunAovRK6zWCEGDnLpqUM6WedRQaC7HjKlCv9CRiK0_D4hfIjLvSNNGMkqxwf3zxMBzhQt68/s400/Lightning+Desktop+-+Lead+detail+layout.png" title="Lead detail layout" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-family: Arial, Helvetica, sans-serif; font-size: small;">Lead detail layout</span></td></tr>
</tbody></table>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span><span style="font-family: Arial, Helvetica, sans-serif;">Lightning Experience will be one of the highlight of DF15 and it will be GA from Oct-15. </span><br />
<br />
<div>
<div>
<span style="font-family: Arial, Helvetica, sans-serif;">There are many things to share, stay tuned. </span><br />
<span style="color: #222222; font-family: Arial, Helvetica, sans-serif;"><span style="background-color: white; line-height: 16px;"><br /></span></span>
<span style="color: #222222; font-family: Arial, Helvetica, sans-serif;"><span style="background-color: white; line-height: 16px;"><br /></span></span></div>
</div>
</div>
Praful Gadgehttp://www.blogger.com/profile/15933700723096790977noreply@blogger.com0tag:blogger.com,1999:blog-6763038323145494554.post-89555347334216516102013-04-22T00:04:00.001-07:002013-04-23T07:29:23.957-07:00Access all the fields of a related object instantly after insert.<div dir="ltr" style="text-align: left;" trbidi="on">
Hi guys, few days back while writing test code for my class I found a weird problem with an awesome solution.<br />
<br />
The scenario was, I have inserted an Account 'My Company' and on next line inserting Contact associating it with this Account 'My Company' by just providing an Account id of an Account 'My Company'.<br />
<br />
Now, I was expecting when I debug an Contact.Account.Name I will get 'My Company' but was surprised to see 'Null' because, I have already linked my Contact to an Account. I was getting Account Id of that Account in debug then why I can't access Account Name or any other Account field except Id.<br />
<br />
To check this out, just paste the below code in your developer console:<br />
<br />
<pre nbsp="" style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtwaEZSfmrGhZqKkdhl885oVWe7gjEIQvPWk31tjnoAkbEzP7EseV_NXBxiBO4LsVdFMBRTqElKnzSamDMaWlOWekUgmWGpQkQKbPopv2XuAVTqnKoWSTSTeb3DXuwaH-1kGaoMMii4v_I/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> Account objAccount = new Account( Name = 'My Company',
Website = 'www.mycompany.com'
);
insert objAccount;<br />
Contact objContact = new Contact( FirstName = 'Praful',
LastName = 'Gadge',
AccountId = objAccount.Id
);
insert objContact;<br />
//objContact.Account = objAccount;<br />
system.debug('----objContact.AccountId----'+objContact.AccountId);
system.debug('----objAccount.Name----'+objAccount.Name);
system.debug('----objContact.Account.Name----'+objContact.Account.Name); </code></pre>
<br />
<b>After digging for many hours we got an answer that we have only assigned AccountId to an Contact.AccountId but all other fields of that Account are not yet connected/related to Contact. To connect all fields of a Contact to the Account we can directly associate an object to the related object, like:</b><br />
<br />
objContact.Account = objAccount;<br />
<br />
Now we can access all the fields of an Account. To check this uncomment a commented line in the above code.<br />
<br />
It means we can associate a whole object to a related object to access all its fields instantly after an insert DML.</div>
Praful Gadgehttp://www.blogger.com/profile/15933700723096790977noreply@blogger.com0tag:blogger.com,1999:blog-6763038323145494554.post-64559580914622001152013-03-31T05:23:00.003-07:002013-04-26T06:31:44.643-07:00Remove buttons from Rich Text Area<div dir="ltr" style="text-align: left;" trbidi="on">
Remove Buttons from Rich text area<br />
<br />
We can find so many blogs to add buttons in Rich Text Area, but when I googled for removing particular button from Rich Text Area I found that there is no one who had posted or knows this.<br />
<br />
So here it comes, the solution:<br />
<ul style="text-align: left;">
<li>Basically I am going to use is JavaScript</li>
<li>Using this I am gonna hide those button elements from RTA</li>
<li>As you can see the JS, I am calling the function onLoad and searching for element 'cke_9'. It's nothing but the HTML element Id of button</li>
<li>If on load also we gets the element as null, we will call this function after 10 Seconds until we find the button/RTA</li>
<li>Then, once we get that button we can make particular button invisible.</li>
</ul>
<div>
<div>
<br /></div>
<div>
Include this JavaScript in your Visualforce page at bottom:</div>
<pre nbsp="" style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtwaEZSfmrGhZqKkdhl885oVWe7gjEIQvPWk31tjnoAkbEzP7EseV_NXBxiBO4LsVdFMBRTqElKnzSamDMaWlOWekUgmWGpQkQKbPopv2XuAVTqnKoWSTSTeb3DXuwaH-1kGaoMMii4v_I/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> window.onload=function(){
setTimeout(
function removeToolbar(){
if(document.getElementById('cke_9') != null)
{
//hideEle('cke_6'); //Undo and Redo
hideEle('cke_9'); //Bold, Italic, Underline, StrikeThrough
hideEle('cke_14'); //Link, Image
hideEle('cke_17'); //Allign Buttons(Left, Center, Right)
hideEle('cke_21'); //Bullet and indent buttons
}
else
setTimeout(removeToolbar, 1000);
}
, 1000);
};
function hideEle(eleId)
{
if(document.getElementById(eleId) != null )
document.getElementById(eleId).style.display = 'none';
} </code></pre>
</div>
<div>
<div>
<br />
<br /></div>
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjpegPaaLPmybvZmPPSv_6BCbSaqOvaWpQZRmU5ifmfW7Dn8iTEcYuKQCnYTh1Bzr7X5Ysg1cvwsxXamq-_XSfxUlETnhI35x8WqywQwFnjeEYsLfKrlMCnSvvzXfoxfn7DzTXdwOSdds/s1600/Remove+buttons+from+Rich+Text+Area.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjpegPaaLPmybvZmPPSv_6BCbSaqOvaWpQZRmU5ifmfW7Dn8iTEcYuKQCnYTh1Bzr7X5Ysg1cvwsxXamq-_XSfxUlETnhI35x8WqywQwFnjeEYsLfKrlMCnSvvzXfoxfn7DzTXdwOSdds/s1600/Remove+RTA+Buttons.png" /></a></div>
<div>
<br /></div>
<div style="text-align: left;">
<div>
<br /></div>
<ul style="text-align: left;">
<li>Someone must be confused about how to get button Ids?</li>
<ul>
<li>If we look at attached screenshot, can easily identify the Id of button we want to remove.</li>
<li></li>
<li>Basically there are 5 group of buttons, each group having an distinct Id.</li>
<li>If you want to remove particular button just add its number to its group Id.</li>
<li>For example:</li>
<ul>
<li>To remove only "Underline" button from second group:</li>
<li>We first take its group Id = "cke_9" and then its number in a group 3, so 9 + 3 = 12 so, <div class="separator" style="clear: both; text-align: center;">
</div>
we will pass the "cke_12" to hideEle function</li>
</ul>
</ul>
</ul>
<div>
<br /></div>
<div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirCp2WTTWVN8G2VLaWDtsxerybXS2bUweQyuWveAl1Nu0wVdUs8vGTLOO92_e8wk3Zt1PFQJBDLXs1_f8YDW3KvIbui1eoDd1ojJF9k0P9VNAvWJXy-t-cWhidsSgB4YssnHIeIJY1rfw/s1600/Remove+RTA+Buttons.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirCp2WTTWVN8G2VLaWDtsxerybXS2bUweQyuWveAl1Nu0wVdUs8vGTLOO92_e8wk3Zt1PFQJBDLXs1_f8YDW3KvIbui1eoDd1ojJF9k0P9VNAvWJXy-t-cWhidsSgB4YssnHIeIJY1rfw/s1600/Remove+RTA+Buttons.png" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
Guys, let me know your feedback on this. As it was much appreciated by end user who were thinking this ain't possible.<br />
<br />
</div>
</div>
</div>
<script type="text/javascript">
var metaTag=document.createElement("meta");
metaTag.name = "google-site-verification";
metaTag.content = "7XCOLAKEhBiAz-kKMg_s2wNmzoz7BIbige_0k54qf20";
document.getElementsByTagName('head')[0].appendChild(metaTag);
</script>
<meta name="google-site-verification" content="7XCOLAKEhBiAz-kKMg_s2wNmzoz7BIbige_0k54qf20" />Praful Gadgehttp://www.blogger.com/profile/15933700723096790977noreply@blogger.com1