You need to sign in to do that
Don't have an account?

getting web URL of a lookup value.
Help on a formula to get the web url of a lookup value.
Example:
Contact Lookup = John Doe
URL Field= https://na16.salesforce.com/003FSV234233AAW
How can I achieve this?
Thanks
Example:
Contact Lookup = John Doe
URL Field= https://na16.salesforce.com/003FSV234233AAW
How can I achieve this?
Thanks
You just need to create a text field with hyperlink on your object and try this as formula to obtain link.
HYPERLINK("https://XXX.salesforce.com/" & LookupFieldName.ID, LookupFieldName.FirstName & " " & LookupFieldName.LastName, "_self")
Replace the XXX with your salesforce server name and LookupFieldName with the name of contact lookup field name.
See if this works.
All Answers
Please use the below sample code:
I also verified the above code in DE environemtn and it looks good.
Please do let me know if it helps you.
Regards,
Mahesh
You just need to create a text field with hyperlink on your object and try this as formula to obtain link.
HYPERLINK("https://XXX.salesforce.com/" & LookupFieldName.ID, LookupFieldName.FirstName & " " & LookupFieldName.LastName, "_self")
Replace the XXX with your salesforce server name and LookupFieldName with the name of contact lookup field name.
See if this works.
HYPERLINK("https://xxx.salesforce.com/"&Id,Opportunity_ID__c + "-" + Account.Name + "-" + Name,"_self")
The link turns into this
https://xxx.salesforce.com/%EF%BB%BF0060e00001qN2jU