+ Start a Discussion
china.leafchina.leaf 

I have a problem with servlet.ReportList

var _handleFailure = function(error){alert(error); };

var _parseXml = function(response){

     alert(response);

};

$(document).ready(function(){

    sforce.connection.remoteFunction({

          url : 'https://emea.salesforce.com/servlet/servlet.ReportList?sessionid={!$Api.Session_ID}'

        , onSuccess : _parseXml

        , onFailure : _handleFailure

        , async : true });

});

 

 

Return this message:


<?xml version="1.0" ?>
<result>
Invalid session.
</result>

 

Why?How to set the session?

PamSalesforcePamSalesforce

Hi,

 

Were you able to find the solution for this.I am getting the same error.

Can you please post your current working code.

 

Thanks, in advance