Skip to main content

Looking for help with logging AJAX proxy calls via sforce.connection.remoteaction.  How can I see what is being sent to the external server?  

Also, should there be any issue with using URL parameters with this sforce.connection.remoteFunction?  

Like this:


sforce.connection.remoteFunction({&nbsp; &nbsp; <br>url : "https://domain/page?param1=xxxxx&amp;param2=xxxxx",<br>&nbsp; &nbsp;onSuccess : function(response) {&nbsp;<br>&nbsp; &nbsp; &nbsp; alert("Success! result:" + response);<br>&nbsp; &nbsp; &nbsp; console.log(response);&nbsp;<br>&nbsp; &nbsp;},&nbsp;<br>&nbsp; &nbsp;onFailure : function(response) {&nbsp;<br>&nbsp; &nbsp; &nbsp; alert("Fail! result:" + response);<br>&nbsp; &nbsp; &nbsp; console.log(response);<br>&nbsp; &nbsp;}&nbsp;<br>});


When I call the URL via the browser it appears to pass the url parameters correctly.  When I use remote action I am getting a json response from the external server that the url parameters are not correctly passed through. 

Have you tried using something like http://requestb.in/ ? You can setup a url to send to and see what was sent. You can then diagnose, correct any issues and then point it back to your target url.

Alternatively you can dive into the developer console in the browser and look in the Network tab: https://community.skuid.com/t/rest-api-debugging

Sorry if this wasn’t what you were getting at!


Thanks Louis!