Cloud Everything !

Salesforce Community - Intmist


1 Comment

Salesforce Community and Site.com URL redirect management: An Easy Way

A large number of companies and organisations are migrating to Salesforce communities from Salesforce portal and there sometimes a problem occurs: if a community is created on https://www.example.force.com/login and a user enters the url https://www.example.force.com, show this page

Salesforce communities

 

No organisation wants to show these type of pages anywhere on Site. Here is the simple way to maange this situation in a short post.

To make url redirect to correct web address Salesforce has provided “URL Redirect” feature by which community redirect can be managed.

 

1. Go to Setup > Develop > Sites

2. Select the Site which need to be mapped to Redirect

Community URL Redirect - intmist

 

3. Click on URL Redirects button

Community URL Redirect - intmist

 

Provide source url which should be redirect to correct path and enter Target url where the URL should be there. So in example if user enters http://www.example.com/tset it will redirect to http://www.example.com/test

 

4. Click on Save button to add the rule.

 

Test the Rule ! Now user will automatically redirect to desired URL without any hassle if it is entered incorrectly.

Advertisements
Salesforce1 Ligtning App - Intmist


Leave a comment

Salesforce1 Lightning Components: Getting started with Salesforce1 lightning components

At Dreamforce’14 Salesforce has introduced a faster way to build mobile application on Salesforce1 platform which is called Salesforce1 lightning framework.

What is Salesforce1 lightning?

Salesforce1 lightning is a UI framework built at the top of Aura framework. Salesforce1 lightning uses javascript language at client-side and Apex language at Server side. UI components are built over html5 and bound with controller javascript. This framework is provided as Salesforce1 lightning components which are reusable components and can be used with more than one Salesforce1 lightning apps.

Development of lightning components is currently available in Salesforce Developer edition organisations only. However Salesforce has provided lightning app builder to create Salesforce1 application just by drag and drop only. It is in pilot now but should available in general in next releases spring’15 or summer’15.

Enabling Lightning Components:

Prerequisite is a developer edition organisation which must have a namespace registered. All winter’15 edition org has lightning feature but disables.

To enable Salesforce1 lightning components go to Setup > DevelopLightning Components.

Check the ckeckbox “Enable Lightning Components” to enable lightning componentsScreen Shot 2014-11-02 at 2.24.05 pm

Also check the Enable Debug Mode checkbox to enable debugging.

Click Save button.

You have successfully enabled lightning components in DE org. Now It should look like this:

Salesforce1 lightning is a UI framework built at the top of Aura framework. Salesforce1 lightning uses javascript language at client-side and Apex language at Server side. UI components are built over html5 and bound with controller javascript. This framework is provided as Salesforce1 lightning components which are reusable components and can be used with more than one Salesforce1 lightning apps.

How to create a Salesforce1 lightning application ?

Right now lightning application can be created by Developer console only. To create a lightning application go to File > New. Click on Lightning Application

Screen Shot 2014-11-02 at 3.17.49 pm

Enter the desired name of the application in popup window. Ex: OpportunityManager

Create Salesforce1 lightning App

You have successfully created a lightning application. It is denoted by <aura:application> tag

New Salesforce1 Lightning Application - Intmist

On the right hand side new application menu is provided. It allows to create application controller,  css style sheet, helper library, documentation and renderer library.

To create a controller click on “CONTROLLER” below the “APPLICATION” or alternatively Ctrl + Shift + 2 can be used to create controller. It will create a new file names OpportunityManagerController.js

Salesforce1 Lightning App Controller - Intmist

Preview button allow to see preview of application to test in real scenario. Our app should look like this:

Salesforce1 lightning app preview

A Salesforce lightning app url formed as https://salesforce_instance.lightning.force.com/namespace/application_name.app. Here it is https://na15.lightning.force.com/intmist/OpportunityManager.app

This was the simple basic way to start with Salesforce1 lightning application development. Undoubtedly Salesforce1 lightning has a lot to do.

 

Some useful links:

https://developer.salesforce.com/resource/pdfs/Lightening_Components_Cheatsheet.pdf
http://rajaraodv.github.io/auratutorials/tutorials/aura-docs.html