Skip to content
Advertisement

Salesforce to magento integration

JavaScript

This is my code… I am just trying to create a lead in salesforce using this code. This is a sample php toolkit code for salesforce.

But when I am trying to run this code. It does not generate any lead in salesforce. My login credentials are correct and security token is also correct.

Where am I going wrong? I am using free developer account and following code for connection in partner.wsdl.xml:

JavaScript

Advertisement

Answer

i did print the value of result but it wasn’t working as well. As I was using partner wsdl i changed new SObject() to new stdClass() and it worked.. 🙂

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement