1

I am trying to create a custom button redirecting either to :

  • the correct LinkedIn profile if the LinkedIn ID is filled
  • a LinkedIn search using First Name & Last Name

So far, here is what I have :

{!
IF(len(Contact.LinkedIn_ID__c)=0,
"http://www.linkedin.com/search/results/people/keywords="&Contact.FirstName&"%20"&Contact.LastName,
"http://www.linkedin.com/in/"&Contact.LinkedIn_ID__c)
}

Whenever I click the button, I am redirected to a new Salesforce page with the following error : "This page isn't available in Salesforce Lightning Experience or mobile app."

I have found a Salesforce doc using the same kind of formula :

{! 
IF(Sample.BillingCountry = "US", 
"http://maps.google.com/maps?q=​"&Sample.BillingStreet&​
"+"&Sample.BillingCity&"+​"&Sample.BillingState&"+​"&Sample.BillingCountry, 
(IF(Sample.BillingCountry = "UK", 
"http://maps.google.co.uk/maps?q=​"&Sample.BillingStreet
&​"+"&Sample.BillingCity&​"+​"&Sample.BillingCountry, 
"http://maps.google.com"))) 
}

What am I doing wrong ?

1 Answer 1

2

This works for me (both Classic and Lex)

  • Detail Page button

  • Behavior: Display in new Window

  • Content Source: URL

    {!IF(ISBLANK(Contact.LinkedIn__c),
      URLFOR('http://www.linkedin.com/search/results/people', NULL, [keywords=Contact.FirstName & ' ' & Contact.LastName]),
      URLFOR('http://www.linkedin.com/in/' & Contact.LinkedIn__c,NULL)
      )
     }
    
1
  • Thanks a lot....!! Commented Nov 8, 2024 at 9:03

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.