• Ross Kerr
  • NEWBIE
  • 5 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 1
    Questions
  • 3
    Replies
Hi, my Open CTI adapter used to be the size set in the call center definition, but now it has shrunk to maybe 100x100. I've installed the demo call center and the sizing is wrong on it too. Has anyone else ran into this problem or have ideas as how to fix?

 
We would want to extract Salesforce knowledge articles as PDF. We tried using Frontdoor.jsp to login through java code. (as a precursor, to get the session id to pass to frontdoor jsp, we call connector class to get the connection.) Our requirement is to read the html response of the knowledge article page and then save that as PDF. However a desired html response is not obtained which can be converted into PDF. We are g
 
EnterpriseConnection connection= null;
     
      
                  ConnectorConfig config = new ConnectorConfig();
                  config.setUsername("xxxxx");
                  config.setPassword("xxxxx");
                  config.setAuthEndpoint("https://na.my.salesforce.com"
                              + "/services/Soap/c/32.0");
 
                  try {
                        connection = Connector.newConnection(config);
                        LOGGER.info("LOGGER::::Enterprise Connection established");
                        LOGGER.info("LOGGER::::Auth EndPoint: "
                                    + config.getAuthEndpoint());
                        LOGGER.info("LOGGER::::Service EndPoint: "
                                    + config.getServiceEndpoint());
                        LOGGER.info("LOGGER::::Username: " + config.getUsername());
                  } catch (ApiFault apiFault) {
                        LOGGER.log(
                                    Level.ALL,
                                    "Exception Occured while connecting to Salesforce due to Api Fault",
                                    apiFault);
                        connection = null;
                        throw apiFault;
                  }
           
 
      LOGGER.info("Session id" +connection.getSessionHeader().getSessionId());
      String sUrl="https://na.my.salesforce.com/secur/frontdoor.jsp?sid="+connection.getSessionHeader().getSessionId()+"&retURL=/knowledge/articlePrintableView.apexp?id=kA0f00000000JgZ";
      HttpClient httpclient = new HttpClient();
      GetMethod get = null;try{
      get = new GetMethod(sUrl);
      get.addRequestHeader("Content-Type" , "plain/text");
      httpclient.executeMethod(get);
                    
      LOGGER.info("Response code"+get.getStatusCode());
   
    if(get.getStatusCode()==404||get.getStatusCode()==503)
    {
      LOGGER.info("Webpage Not Available. Please Run after some time ");
     
    }
    }catch(Exception e){
      e.printStackTrace();
      }
      LOGGER.info("oupu"+get.getResponseBodyAsStream());
Here is the response we get when it is printed out on console.
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"></head><body><script>var tm=null;function lhdoredir(){tm&&(window.clearTimeout(tm),tm=null);window.location.replace?window.location.replace("https://na.my.salesforce.com/knowledge/articlePrintableView.apexp?id=kA0f00000000JgZ"):window.location.href="https://na.my.salesforce.com/knowledge/articlePrintableView.apexp?id=kA0f00000000JgZ"}window.setTimeout?tm=window.setTimeout(lhdoredir,1E3):lhdoredir();var SFDCSessionVars={"uid":"005i0000003UV8J","exp":1435209016000,"host":"test.salesforce.com","oid":"00De0000005VPg9","server":"https://test.salesforce.com/login/sessionserver190.html","act":"u"};SFDCSessionVars.callback=lhdoredir;</script><script src="/jslibrary/1427810574000/sfdc/SfdcSessionBase190.js"></script><noscript>You do not have Javascript enabled. Javascript is required to use salesforce.com. Please enable Javascript, then click <a href="https://na.my.salesforce.com/knowledge/articlePrintableView.apexp?id=kA0f00000000JgZ">here</a> to continue.</noscript></body></html>
If there are any guidance to how to proceed that would really help?
 
Hi all,
I created a connected app with Full and Web scope included. I'm able to retrieve the salesforce instance and access token and query the salesforce objects with rest apis. 
However when I try to access the Frontdoor.jsp with the call https://inst.salesforce.com/secur/frontdoor.jsp?sid=<access_token>&retURL=<ret_url>
I always get the login page.
The same call done by using a session id (taken from a Firefox cookie) works.
In the documentation of frontdoor.jsp is written that an access_token can be passed if the connected abb has full or web scope included, but mine doesn't work... do you have any hint for this?
Per support instructions can someone disable click jack protection on this org?

https://org62.my.salesforce.com/0013000000ZmVOo

Customer request below....

I see that response now in my previous emails but thought it was an older comment - my mistake for misreading the time stamps. However, I'm not sure why this would require developer resources. The only change I'm trying to make is to be allowed to uncheck the "enable clickjack protection for non-setup Salesforce page" under the Security Controls -> Session Settings section. Here's a screenshot:

Inline image 1

Is this not a setting that your support team can switch on/off?

FYI, our vocalcom implementation engineer told me that this clickjack protection setting is what is preventing us from accessing certain features of their product within SalesForce. These features were accessible 2 weeks ago then suddenly became inaccessible, so vocalcom's assumption is that SalesForce support or engineers pushed out an update that changed our session settings (would have to have been within the last 2 weeks). If that is not the case please let me know so that I can attempt further troubleshooting with vocalcom.
hi..
each time i try to use the front door url with .net sdk  by building the url like so:
AuthenticationClient auth = new AuthenticationClient();
auth.UsernamePasswordAsync(ConsumerKey, Secret,Username, Password + SecurityToken).Wait();
ForceClient forceClient = new ForceClient(auth.InstanceUrl, auth.AccessToken, auth.ApiVersion);
string sid = System.Web.HttpUtility.UrlEncode(this.auth.AccessToken);              
auth.InstanceUrl + "/secur/frontdoor.jsp?sid=" + sid;
using the url i get thrown back to the login page with the message "attempted to use a resource which requires you to login" 

even though using the sdk itself works. and i'm able to login with it correctly.