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

Programatically generating link to Opportunity or other record


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<record ID> but that seems like a bad solution.

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