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
citeitciteit 

Programatically generating link to Opportunity or other record

Hello,

I need to generate a link to an opportunity and was wondering if there's a way to do this through the API? I can do it now by just outputting a string like https://na4.salesforce.com/<record ID> but that seems like a bad solution.

SuperfellSuperfell
describeSObject("Opportunity") will return the URL patterns for the various pages.
citeitciteit
Thanks! Works great!