How to get the URL for the object tab in Salesforce?

Sample Code:

        Schema.DescribeSObjectResult r = Directory_Edition__c.sObjectType.getDescribe();
        String URLforObj = URL.getSalesforceBaseUrl().toExternalForm() + r.getKeyPrefix() + '/o';

Cheers!!!

6 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. I am extremely impressed with your writing skills and also with the layout on your blog
    sas online training

    ReplyDelete

  3. I enjoy reading through a post that will make people think. Also, many thanks for permitting me to comment!
    SAP APO Online Training

    ReplyDelete