Monday 28 October 2013

Brand Your Salesforce Login Page

Branding your Salesforce Login Page - Winter 14 release

 Now you can Brand your Salesforce login page according to your requirement.



What you can change in your login page?
1. look and feel of your login page by adding a background color.
2. custom logo
3. right-frame content. 

Prerequisites ?
There should be at least one Domain enabled for your org.To check this follow the 
path :Name | Setup | Administration Setup | Domain Management | Domains and check whether the domain is enabled for your salesforce org or not. 

How to Add a Domain ?
If you want to add Domain and don’t know how to do that, then click on link 

To Customize Your Login Page , Follow the Instructions
1. Path to customize your page Name | Setup | Administration Setup | Domain Management | My Domain.
2. Click on Edit button under Login Page Branding section
3. If you want to customize your login page with your company logo, upload an image.
Note :- Images can be .jpg, .gif or .png files up to 100 KB in size. Maximum image size is 250px by 125px.4. If you want change your login page background, it’s very easy click the color picker or enter a valid hexadecimal color code.
5. To change right side iframe on the login page, enter URL to Right Frame URL Box.
6. Click Save after you Update all the information.
7. In My Domain Settings Section you can add additional authentication process for your login page 
 This is how my developer Org Looks like


                     SO Start Doing the same for you orgs. Please Let me know your comments

Tuesday 12 February 2013

Uploading Multiple Attachments into Salesforce




Here is a Simple Way to attach Multiple attachments into salesforce at once , through this you can attach 10 files at a time. In this i have used account as a standard controller so this works with respect to Account Records, all thst you have to do is to pass the id of the record so the files gets attached to the particular record and gets saved in the Notes & Attachments related list of that particular record.
---------------------------------------------------------------------------------------------------------------------------------
VisualForce Code

---------------------------------------------------------------------------------------------------------------------------------
<apex:page standardController="Account" extensions="MultipleUploadController">
    <apex:form>
        <apex:pageBlock title="Upload Multiple Attachment to Object">
         
            <apex:pageBlockButtons>
                <apex:commandButton value="Upload"  action="{!SaveAttachments}"/>
            </apex:pageBlockButtons>
         
            <apex:pageMessages id="MSG"/>
            <apex:actionFunction name="ChangeCount" action="{!ChangeCount}"/>
         
            <apex:pageblocksection>
                         
                <apex:pageBlockSectionItem>
                    <apex:outputLabel value="How many files you want to upload?"/>
                    <apex:selectList onchange="ChangeCount() ;" multiselect="false" size="1" value="{!FileCount}">
                        <apex:selectOption itemLabel="--None--" itemValue=""/>
                        <apex:selectOptions value="{!filesCountList}"/>
                    </apex:selectList>
                </apex:pageBlockSectionItem>
         
            </apex:pageblocksection>
         
            <apex:pageBlockSection title="Select Files" rendered="{!IF(FileCount != null && FileCount != '', true , false)}">
                <apex:repeat value="{!allFileList}" var="AFL">
                    <apex:inputfile value="{!AFL.body}" filename="{!AFL.Name}" />
                 

                </apex:repeat>
            </apex:pageBlockSection>
         
        </apex:pageBlock>
    </apex:form>
</apex:page>
-------------------------------------------------------------------------------------------------------------------------------------------
Controller
-------------------------------------------------------------------------------------------------------------------------------------------

Tuesday 22 January 2013

Clock in a visualforce Page

**************CLOCK in a visual force page******************* 

                 quiet interesting !! is it ??????????

=================================================================================
>                Yes it can be done with help of some basics in html , with this you can even create   a     stop watch or countdown timer  TOO  but for now i came up with an example of clock which will be displayed on the visual force page and which can be stopped even .
And here is the code for it ...........!!!!!!!!
==========================================================================================
VISUAL FORCE PAGE:-
==========================================================================================
<apex:page id="thePage" showHeader="false"><html>
<body>
<center>
<div id="clock"></div>
</center>
<br/>
<div align="right">
<button onclick="int=window.clearInterval(int);" id="stop">Stop Clock</button>
</div>
</body>
<script type="text/javascript">
var int = self.setInterval("clock()",1000);
function clock()
{
    var d=new Date();
    var t=d.toLocaleTimeString();
    document.getElementById("clock").innerHTML = "<B>" + t + "</B>";
}
</script>
</html>
</apex:page>
============================================================================================
You can play around with "set Interval" and "clear Interval" functions to create a stop watch or countdown timer code.

Hope this was interesting and useful.

Happy Clouding.. :)...:)...:)

Monday 21 January 2013

Tips For Salesforce ADMIN


 #### So Here's my First Post 

I think this will help Mostly the salesforce Admins..... Did you Ever think about making mistakes ? ofcourse they are routine at the starting level . so when you want to edit an autonumber field or Change a User's Email Address Without Sending a Confirmation Request here's is the solution for it


1. Auto-number Switch

Myth: Auto-number fields only ever contain the numbers which the field has generated on its own.
                The truth is, you can jam anything you want in there! The loophole you use to do so is that you can change the "field type" of a field from Auto-number to Text or from Text to Auto-number. So for instance, you can change an Auto-number to Text temporarily so you can modify some of the numbers that had been assigned previously, and then change it back to Auto-number so it will continue assigning numbers to new records.  Give it a whirl, it's fun! Be careful though, while you have the type set to anything other than "Auto-number" records will be created without getting a number assigned.

2. Change a User's Email Address Without Sending a Confirmation Request

Usually, when you change the email address on a user record an email is sent to the new value asking the user to confirm the change. Only when the confirmation link in the email is clicked will the change be reflected in salesforce. This happens regardless of how you update the email address… manually, API, etc. There is no way around it… or so I thought! Turns out, if you change the email address AND check the "Generate new password and notify user immediately" checkbox (all the way at the bottom of the edit screen) then the email address gets committed right away, no confirmation needed! Obviously the catch is that the user then gets sent a new password… so it's not any better in some situations. 
******You know how it is, you tell a user what their username is in the sandbox and tell them to use whatever password they were using in production when the sandbox was last refreshed… and they don't remember and ask you to reset it… so you'd have to explain that they need to confirm a change to their email first… you get the picture. Now you just update the email and get them a new password in one shot*******