• jonathan.wiesel
  • NEWBIE
  • 0 Points
  • Member since 2016
  • Technical Architect
  • S4G Consulting

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 3
    Replies
Is there a way to login to Marketing Cloud and Pardot passing the credentials as parameters in the URL the same way we do in Salesforce like:
 
login.salesforce.com?un=test@test.com&pass=12345

I tried similar approach against pi.pardot.com and auth.exacttarget.com but no luck 
 
I have a Visuaflorce page that works fine with Lightning Experience. It's a page override of an Edit button in a custom object.

In order to avoid the users to leave the page without saving I implemented something like this in javascript in the page:
 
window.onbeforeunload = function() {

    if (...) {
        return 'Are you sure you want to leave? Your changes will be lost';
    }
}
This works like a charm on Classic when the user tries to close the browser, change tabs to another object, or anything that basically makes the Visualforce page be dismissed.

This however doesn't work in LEX. Is there a workaround for this kind of scenarios to avoid users lose changes for navigating away from the page?
I'm building a desktop application that let users login to their org and extract data from certain objects for later use. 

I created a Connected app (let's call it "My App") in a developer org.
My desktop application login is based on the "Web Server OAuth Flow", so the first time the user uses the application he is redirected to a Salesforce login page so he can authorize my connected app, in the callback I obtain an access and a refresh token for later use on requesting data from the org on behalf of the user.

All normal until here.

My problem comes when I wanted to launch a window to the connected org from my desktop application.

At first I saw this http://docs.releasenotes.salesforce.com/en-us/winter14/release-notes/security_frontdoorjsp.htm

So from my desktop application I open a browser window pointing to 
 
https://instance.salesforce.com/secur/frontdoor.jsp?sid=access_token

Using the access_token I have on my desktop app. The user gets successfully logged in.

However when he creates a Chatter post or comment, the message footer that contains the message date says something like "Today at 16:00 via My App". The same kind of message when you post to Chatter from Chatter Desktop or Salesforce1 mobile.

I just want to offer an easy way to access the org from the desktop application, I don't want the following actions to be tied to the connected app authorized, any ideas?
Hello, I have a Visualforce page that has lightningStylesheets="true" and when I click 'preview' I see it as a lightning page, but I also have a force.com site that has this Visualforce page and when I open it through the Anonymous Chrome it shows Classic instead of Lightning.

Thanks!
Hi,

Does anyone knows if you can disable the 'Allow access to ' page during the oauth authentication process for communities ?
I have the login procedure in Salesforce, but it is embedded in an Iframe. In the communities site, I disabled already the Clcikjack protection, but that didn't help to solve my problem.

I received the error: Refused to display 'https://a1-myvangansewinkel.cs20.force.com/setup/secur/RemoteAccessAuthoriz…Jc8Z9I9jFVHJO8_9BZlsS7L57ZDGcrYqR-Y_-lEFiRW8DJL2BDUWmJA%3D%3D&display=page' in a frame because it set 'X-Frame-Options' to 'DENY'
 
Hi,
We got below fatal error while connecting to Salesforce through IBM Datastage SFDC Connector

Message ID from Datastage : IIS-CONN-SALESFORCEJC-00015

main_program: Fatal Error: Information:  error code: 8
    error message: ; nested exception is:
    java.net.ConnectException: Connection timed out
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: java.net.ConnectException: Connection timed out
 faultActor:
 faultNode:
 faultDetail:
    {http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Connection timed out
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:369)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:230)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:212)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
    at java.net.Socket.connect(Socket.java:642)
    at com.ibm.jsse2.qc.connect(qc.java:365)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
    at java.lang.reflect.Method.invoke(Method.java:619)
    at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
    at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:130)
    at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
    at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    at org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTTPSender.java:196)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    at org.apache.axis.client.Call.invoke(Call.java:2767)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at com.sforce.soap.partner.SoapBindingStub.getUserInfo(SoapBindingStub.java:4690)
    at com.ibm.is.erp.salesforce.core.SalesForceConnection.getUserInfo(SalesForceConnection.java:397)
    at com.ibm.is.erp.salesforce.jcconnector.CC_SALESFORCEJCConnection.connect(CC_SALESFORCEJCConnection.java:443)
java.net.ConnectException: Connection timed out
    at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
    at org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTTPSender.java:301)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    at org.apache.axis.client.Call.invoke(Call.java:2767)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at com.sforce.soap.partner.SoapBindingStub.getUserInfo(SoapBindingStub.java:4690)
    at com.ibm.is.erp.salesforce.core.SalesForceConnection.getUserInfo(SalesForceConnection.java:397)
    at com.ibm.is.erp.salesforce.jcconnector.CC_SALESFORCEJCConnection.connect(CC_SALESFORCEJCConnection.java:443)
Caused by: java.net.ConnectException: Connection timed out
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:369)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:230)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:212)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
    at java.net.Socket.connect(Socket.java:642)
    at com.ibm.jsse2.qc.connect(qc.java:365)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
    at java.lang.reflect.Method.invoke(Method.java:619)
    at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
    at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:130)
    at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
    at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    at org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTTPSender.java:196)
    ... 12 more