Activity Forums Salesforce® Discussions How to fetch record id using Salesforce instance URL address?

  • 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.

Popular Salesforce Blogs

Popular Salesforce Videos