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 ?