function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Unais KomathUnais Komath 

Link Force Set up

Hi

 

can someone help me with Linkforce Setup? Can i have a user guide for the same?

 

  1. Install the LinkForce Package from the Appexchange. - DONE
  2. Create a new Force.com Site, or add the urlRedirect VF page and urlController, urlRewriter Apex controllers to your existing site. - HOW TO DO THIS??
  3. Define your Base URL and Default URL in Setup -> Develop -> Custom Settings -> LinkForce Settings -> Manage. Your Base URL should match your Force.com Sites name. ( Whats the difference between base URL & Default URL??)
  4. Make sure your Sites guest user profile has permission to read the Short URL object, and create new Short URL Click objects.- DONE
  5. Edit your Force.com Site and set 'urlRewriter' as the URL Rewriting class. - DONE
  6. Start shortening! - my shortened URL is not working!!

WHat am i missing? can anyone help??

Best Answer chosen by Admin (Salesforce Developers) 
jhersh1jhersh1

https://sandeep.com/ is the URL of your site? Are you sure about that? I think custom Sites domains require a subdomain, even if it's only "www". Can you verify what URL appears in your site's custom web address, and can you verify you've properly CNAMEd your domain to your salesforce site?

All Answers

jhersh1jhersh1

Hiya, I wrote linkforce.

 

Re 2: These pages and classes need to be enabled for your sites guest user, otherwise they won't work for people clicking your links. This is set on the sites guest user profile.

 

Re 3: Base URL is the name of your site and the prefix of your shortened links. My Site with linkforce is at http://lf.force.com, so that's my base URL. Default URL is where you send someone if they click on a link that doesn't exist in your linkforce app.

 

If you have other questions, feel free to contact me at jhersh@salesforce.com

Unais KomathUnais Komath

Hi, 

 

Thanks for you quick response. you have a awesome app.

 

please find the settings which i have made below.

 

For Site Guest User profile

 

Enabled Apex Class Access

UrlController urlHomeController urlRewriterLinkForce is added

 

Enabled Visualforce Page Access

aboutLinkForce urlHome urlRedirect is added.

 

Base URL  - (https://sandeep.com)

 

Default URL - ( www.salesforce.com)

 

I created a SHORT URL - https://sandeep.com/g  for www.google.com but it doesnt work.

 

can u please help me on this?

 

jhersh1jhersh1

https://sandeep.com/ is the URL of your site? Are you sure about that? I think custom Sites domains require a subdomain, even if it's only "www". Can you verify what URL appears in your site's custom web address, and can you verify you've properly CNAMEd your domain to your salesforce site?

This was selected as the best answer
Unais KomathUnais Komath

Hi,

 

MyBad. I thought i can use any desired address there. my site address is https://sandeepavankia-developer-edition.ap1.force.com/ and i have changed the base uRL and it works fine now.

 

Thanks for your support.

 

I can also see the link access details as well :-)

 

You got an awesome product.

 

I have another question. Is there any way where i can create a formula field which will help me in creating short URL automatically?

jhersh1jhersh1

Thanks! 

 

Not sure what you mean by a formula field to generate a short URL. It does that automatically for you when you save a new link, right? You can also (optionally) specify a custom shortened url.

Unais KomathUnais Komath

Let me elaborate the requirement.

 

For Example i have a job in my instance and i generate the application url for that job using a formula field by using the salesforce id for that particular job record.Formula filed will look something like this ( " htttp ......."+ID).

 

we have formula field so that it automatically generated URL for all the jobs in the system.

 

so my question is is there a way where i can create short application url automatically using a formula field. why i need this functionality is because i can hvae a number of jobs a day and i would like to automate the URl shortening process.

 

Please let me know your thoughts about this.

 

 

jhersh1jhersh1

Certainly. You can use Apex or javascript remoting or web services to programmatically insert a record into the Short URL table with any URL you like.

Unais KomathUnais Komath

Thanks :-)

CRM2CRM2

The page is helpful and it works for me ^_^

 

http://crm2.force.com/0

CRM2CRM2

Shorten URL Setup is ok but how to setup the report to display the "date/time" the click happens.

 

How to find and add "click time" field to the report ?

jhersh1jhersh1

You should be able to view date/time (and more!) for all clicks on an individual link by clicking the "i" icon next to a link on the Linkforce page.

 

Or, if you're creating your own custom report on the Short Url Click custom object, you should be able to group by createddate or any other grouping.

CRM2CRM2

And, yes, there's click time in the "i"

 

However, it can't be added to custom report

 

Since "click date + click time" is detail information for shorten url analysis purpose, hope to have the "click time" field for custom report.

 

Is "Createdate of click" the same as "click date" ?

 

Thanks for quick response

jhersh1jhersh1

The createddate of the short_url_click__c object is the click date. It's a standard field and is definitely available in reports.

CRM2CRM2

Trying to make a custom field and guess it will works

 

Salesforce is so great and easy use

 

And, thanks jhersh1

 

----------------------------------------------------------------------------------------------

 

It works ^_^
Short URL...  Short URL... ClickTime
7 Click-0003 2011/5/17 上午 10:50
7 Click-0001 2011/5/17 上午 10:38
7 Click-0004 2011/5/17 上午 10:56
7 Click-0000 2011/5/17 上午 10:32
7 Click-0002 2011/5/17 上午 10:41
總計 (5條記錄)

 

Dola Agnihotri 5Dola Agnihotri 5
I am looking for a app in salesforce which can shorten the URL captured in one of the Custom URL field.
 
Not able to configure site, base url and default url for this bit as my requirements a bit different.  
 
Can anyone help with this ?
 
Pooja Agrawal 8Pooja Agrawal 8
Is there any documentation available?