Posts

401 Certified Again... :)

It's been awhile since wrote on my blog, I have cleared 401 again.. I meant my last one got expired as I was busy with other stuff. I want to continue this and take it next level like 501... I have been notified by salesforce that there are going to be few new certifications. I hope to have one more entry here: http://certification.salesforce.com/verification?&fullname=prabhanjan%20nandyala :D Prabhan

Single Sign-On For Communities Using Salesforce Identity Provider

Image
This Blog post helps you configure SSO for communities between two salesforce Orgs. 1. Create two developer orgs. 2. Create two domains for them, SSO is possible when there is dedicated URL (not na1.salesforce.com or ap1.salesforce.com).   It needs some thing like these: https://npr-dev-ed.my.salesforce.com, https://sf9-dev-ed.my.salesforce.com. One of them hosts community, let's just say https://sf9-dev-ed.my.salesforce.com holds the community. And other org, https://npr-dev-ed.my.salesforce.com, users want to use the community, this is where our SSO plays an important role in providing seamless navigation in between orgs. 3. Enable and create a communities in sf9 org. It is required to have a different domain name. In this example the domain name of the community is "sf9-comm-developer-edition.ap1.force.com". 4. Create a community here, with some meaningful name at the end. 5. Click "Edit", it takes you to community administrator set...

Salesforce Apex @future after summer 14

@future @summer'14 @future is an annotation that tells the system to process the data asynchronously, When you specify @future, the method executes when Salesforce has available resources. In integrations, There are times when other systems may not respond immediately when you make a request. And in case of triggers, Apex governors do not allow callouts as it cannot keep the resources idle until the other systems respond. That's when you opt for @future. To make a method in a class execute asynchronously, define the method with the future annotation. For example: global   class MyFutureClass {   @future    static   void myMethod( String a, Integer i) {     System.debug( 'Method called with: ' + a + ' and ' + i);     // Perform long-running code   } } See this link: https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_annotation_future.htm And the...

Salesforce Aura/ Aura Framework

Image
Salesforce Aura, a UI framework, is one of the greatest things that salesforce has come up with. Please watch this video: Things I've noticed are: Its free. You can build mobile apps as well as any transformable apps for both mobile and desktop. Here is the github link for u to get a copy and try:   https://github.com/forcedotcom/aura I can kiss goodbye to the Mobile SDK. It does not require Visualforce/ Apex to work. For that matter it is independent of Salesforce platform.  It is shown in the video the syntax of aura components, <aura:component extensible="true"> <aura:attribute> tags, which means we are going to learn new things and have fun :) The basic knowledge of java/ Apache Maven is good to start with this development. As you know salesforce technologies dont mandate any thing. So, I think, the newbies can also be comfortable with this.  Salesforce1 is built on this and it has excellent capabilities. I dug into the git and...

Know How Much Data Is Occupied By Your Standard Objects/ Custom Objects

Hi Just wanted to share this with you all. Do you know: What are the various record sizes? Knowledge Article Number: 000003631 Description What are the various record sizes? Resolution Most records are 2KB, see the list below for exceptions.. Document storage is separate from data storage and counts at the actual size of the uploaded document. For up to date figures on your company's use of storage please refer to: Setup | Data Management | Storage Usage **** Leads -- 2KB Contacts -- 2KB Accounts -- 2KB Person Accounts - 4KB Opportunities -- 2KB Forecasts -- 2KB Events -- 2KB Tasks -- 2KB Cases -- 2KB Case Team Member – 2KB Solutions -- 2KB Notes -- 2KB Custom Reports -- 2KB Campaigns - 8KB Campaign Members – 1KB Contracts – 2KB Google Docs – 2KB Quotes – 2KB Tags: unique tags – 2KB Custom Objects – 2KB Quote Template Rich Text Data - 2KB Articles - 4KB Email Message - This is dependent upon the content of the messages, a 100kb email message takes 100kb of data storag...

Custom Alert Message On Salesforce 'Submit For Approval' Button !?!

Image
Recently I came across a scenario where the business wanted to see the custom message on click of submit for approval button?!? When we understood what was happening on click of the button, It was lot easier for us to implement that. Salesforce.com apps are being used on the web browsers We can identify what is given to the browser by "right-clicking" on the browser element and seeing what the html for that element, like explained below. I recommend you do this before proceeding with the solution. 1) Login 2) Go to a record which has an active approval process. 3) Right click on "submit for approval" button 4) Inspect element (Chrome/ Firefox) or view source (safari/ IE and you have to search for "submit for approval" button tag) There, you will see -- That is just html generated by Salesforce but it has something that we need for this solution. So lets understand that. It has for confirmation-type alert what is conform() and it has g...

Invoke Workflow When Only One Field Is Changed!

Image
Hi This is only configuration, but I see people not aware of such thing. We all opt for code not knowing that there are standard ways to do so many things. The following is one of that. Requirement : When Stage of Opportunity is changed , Say, we have to update allowance (text) field. Solution 1 : Write a workflow rule and a field update. Solution 2 : Write a trigger which has the logic for checking if the field value is changed and do some more statements. But there is one problem with Sol 1, i.e., t his runs the FU every time record is changed, if our FU is a complicated formula field we would like to go with apex trigger. But there is standard way. There is one option where we can run these FUs only when the field is changed. And we also can write these formulas for rule criteria. HTH Prabhan