• xoomster
  • NEWBIE
  • 10 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies
Dear Salesforce support boards

We recently encountered issues calling salesforce API via iframes in our sandbox environments. We have since updated are java keystore by getting the new certificate by making an openssl call to the salesforce endpoint. Will we have to do the same for production when summer '15 is deployed? Can we get the new certificate in advance? Before the fix, the error that was displayed in the iframe is "HTTP Status 403 - Invalid Crm session. Id: " Our server logs were showing this, "sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"
Hi all,

Base on my code below, how can I programmatically decide whether or not the current user session is in the service cloud console?

I would like the user to be able to got to this link and have it render in console or regular; https://cs7.salesforce.com/apex/Launcher?txnID=a0AM0000004P7Se

................
Page (Page name = Launcher)
................
<apex:page controller="LauncherController" action="{!processRequest}">

</apex:page>
................
Controller
................
public class LauncherController{
    private String transactionID{get;set;}

    public LauncherController(){

    transactionID = ApexPages.currentPage().getParameters().get('txnID');

    }//end-method

    public PageReference processRequest(){ 

    PageReference pageRef;  

    // if console

    pageRef = new PageReference('https://cs7.salesforce.com/console#%2F' + transactionID);

    // else

    //pageRef = new PageReference('https://cs7.salesforce.com/' + transactionID);

    // end-if

    if(transactionID==null){
      return pageRef;
    }
    return pageRef;
    }
}
Hi all,

Base on my code below, how can I programmatically decide whether or not the current user session is in the service cloud console?

I would like the user to be able to got to this link and have it render in console or regular; https://cs7.salesforce.com/apex/Launcher?txnID=a0AM0000004P7Se

................
Page (Page name = Launcher)
................
<apex:page controller="LauncherController" action="{!processRequest}">

</apex:page>
................
Controller
................
public class LauncherController{
    private String transactionID{get;set;}

    public LauncherController(){

    transactionID = ApexPages.currentPage().getParameters().get('txnID');

    }//end-method

    public PageReference processRequest(){ 

    PageReference pageRef;  

    // if console

    pageRef = new PageReference('https://cs7.salesforce.com/console#%2F' + transactionID);

    // else

    //pageRef = new PageReference('https://cs7.salesforce.com/' + transactionID);

    // end-if

    if(transactionID==null){
      return pageRef;
    }
    return pageRef;
    }
}