0

We are currently using a managed package UI .

Upon clicking of Account in service console , user is directed to the managed package UI and not any VF Page .

How can I get the value of UI using getHeaders()

 map<String, String> mapHeaders = ApexPages.currentPage().getHeaders();

and

 X-Salesforce-SIP

How can this be accomplished?

0

Please find below getheader() can return this.

host= ApexPages.currentPage().getHeaders().get('Host');
referer=ApexPages.currentPage().getHeaders().gete('Referer');
useragent=ApexPages.currentPage().getHeaders().get('User-Agent');
chipersuite=ApexPages.currentPage().getHeaders().get('Chipersuite');
forward=ApexPages.currentPage().getHeaders().get('X-Salesforce-Forwarded-To');
salesforceip= ApexPages.currentPage().getHeaders().get('X-Salesforce-SIP');

Header information details can be found here

| improve this answer | |
  • Thanks Avijit . But is there any other way apart from get Header to get the ip address . I am not using VF Page – Dexter D Jun 21 '17 at 19:04
  • 1
    You can take help of trigger to do soql on login history – Avijit Chakraborty Jun 21 '17 at 22:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.