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
DarkHalfDarkHalf 

After inserting record, I want to view the URL of it.

After I insert a lead or contact, I get the ID returned from the rest interface.  I'd like to present a link to view this lead in a browser.  Is there a way to construct a url from the id?

Sonam_SFDCSonam_SFDC

Hi DarkHalf,

 

The URL for records entered in Salesforce is always of the following format:

https://<Instance code or XXX.my>.salesforce.com/<Record ID>

 

However, what you will have to check is how to create a user session on browser such that you are able to open the URL on the browser and able to access Salesforce record using the URL you create from the ID.

 

Hope I got your question correctly and the info helps..