Skip to main content
Hi,

I need to get the Id of the record from standard SF URL https://cs20.salesforce.com/a04m00000090fvg and use it in url rewriter class. Can anyone help me with it?

Thanks,

Vetri
4 réponses
  1. 17 juin 2015, 11:53
    Let's take an example of account. If i want to take id of account then you can do this in following way 

     

    public with sharing class AcctControllerExtn {

    private final Account acct;

    public AcctControllerExtn (ApexPages.StandardController stdController) {

    this.acct = (Account)stdController.getRecord();

    Id CustNo = acct.Id;

    }

    Let me if it does not work for you.

     
0/9000