Activity › Forums › Salesforce® Discussions › How to fetch record id using Salesforce instance URL address? Salesforce® Discussions How to fetch record id using Salesforce instance URL address? Posted by Deepak on October 11, 2019 at 1:00 PM How to fetch record id using Salesforce instance URL address? Laveena replied 6 years, 7 months ago 2 Members · 1 Reply 1 Reply Laveena Member October 11, 2019 at 1:09 PM Hi Deepak, I guess you can use the string methods now to pull the ID. BrowserURL=BrowserURL.right(15);//Pull from right the 15 digit Id If your org is not update to winter 13 then you can use String.Split(‘/’) and get the last array element value . Thanks Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me