+ Start a Discussion
Park Walker (TAGL)Park Walker (TAGL) 

Referencing salesforce object in external URL

We have been sending emails to users which have links to specific records in our database. The URLs have been very simple: https://na1.salesforce.com/7013000000004zzAAA. With the upcoming server moves this scheme will apparently break, or at least require an update coincident with the move.

It seems as if one can use a generic https://www.salesforce.com/login.jsp?redirect=... format, but this requires that the user log in even if they are already
logged in. The format above internally generates the correct redirection URL if the user is not logged in but takes them directly to the record if they are.

I'm wondering if there is a best practice for this sort of reference that's a bit more bulletproof.

The describe calls will give you a complete URL pattern for object that include the correct instance identifier.