7 Replies Latest reply on Jul 16, 2007 7:09 AM by Amit 9808

    Cold Fusion and SalesForce

    Amit_Rana
      Hi everyone.
      I had just started working with ColdFusion and SalesForce.
      I was able to login to Sales Force and query tables,
      but I couldn't find a way to
      create/update/delete tasks/leads,etc.

      has anyone written any code that can help me out?
      Thanks
      Amit Rana
        • 1. Re: Cold Fusion and SalesForce
          brijeshvora
          Hi Amit,

          I am also working on ColdFusion with Salesforce but I could not query the Table.
          My concern is to get the Contacts From Salesforce.
          I have tried with few codes but I am not sure how I can access the Contact Names and other details.
          Can you please help me regarding the same?

          Thanking in advance.
          -Brijesh
          • 3. Re: Cold Fusion and SalesForce
            brijeshvora Level 1
            Hi tclaremont,

            Thanks for your quick reply and I have already gone through this. The error I am getting now are

            "
            coldfusion.jsp.CompilationFailedException: Errors reported by Java compiler: Found 7 semantic errors compiling "C:/CFusionMX7/stubs/WS-618283634/com/sforce/soap/partner/SoapBindingStub.java": 10. public class SoapBindingStub extends org.apache.axis.client.Stub implements com.sforce.soap.partner.Soap { <-------------> *** Error: The abstract method "com.sforce.soap.partner.DescribeLayoutResult describeLayout(java.lang.String sObjectType, com.sforce.soap.partner.ID[] recordTypeIds);", inherited from type "com/sforce/soap/partner/Soap", is not implemented in the non-abstract class "com/sforce/soap/partner/SoapBindingStub". 10. public class SoapBindingStub extends org.apache.axis.client.Stub implements com.sforce.soap.partner.Soap { <-------------> *** Error: The abstract method "com.sforce.soap.partner.DeleteResult[] delete(com.sforce.soap.partner.ID[] ids);", inherited from type "com/sforce/soap/partner/Soap", is not implemented in the non-abstract class "com/sforce/soap/partner/SoapBindingStub". 10. public class SoapBindingStu....
            "

            I am not sure what is happening here.
            Can you please tell me more about it.
            Do I need to work on Jar file for Salesforce clases?
            Please tell me
            Thanks,
            -Brij.
            • 4. Re: Cold Fusion and SalesForce
              Amit 9808
              Sorry Brijesh,

              For some reasons i was not able to login
              from the last so many days.

              Now tell me whether your problem is resolved or not.
              now i can also help you in updating and inserting leads in
              sales force also.
              • 5. Re: Cold Fusion and SalesForce
                fshin
                Hey Amit,

                How do you insert a contact or lead using the create call?

                FS
                • 6. Re: Cold Fusion and SalesForce
                  Amit 9808 Level 1
                  Hi Frank,

                  yes we are able to use the create api call, what we did is we generate SOAP by using partner.wsdl and used that soap for creating and updating things.

                  if u want to see the example of soap then i have posted one for the logging to salesforce in the following thread:

                  http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=7&threadid=781179

                  Hope this will resolve ur problem.

                  Regards,

                  Amit
                  • 7. Re: Cold Fusion and SalesForce
                    Amit 9808 Level 1
                    Hi Frank,

                    following is the example for logging to salesforce

                    *************************************************************************

                    <cfsavecontent variable = "LoginSOAP">
                    <SOAP-ENV:Envelope xmlns:SOAP-ENV=" http://schemas.xmlsoap.org/soap/envelope/"
                    xmlns:SOAP-ENC=" http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
                    xmlns:xsd=" http://www.w3.org/2001/XMLSchema">
                    <SOAP-ENV:Header>
                    <m:LoginScopeHeader xmlns:m="urn:partner.soap.sforce.com"> <m:organizationId></m:organizationId>
                    </m:LoginScopeHeader>
                    <m:CallOptions xmlns:m="urn:partner.soap.sforce.com">
                    <m:client></m:client>
                    </m:CallOptions>
                    </SOAP-ENV:Header>
                    <SOAP-ENV:Body><!---Body of Soap--->
                    <m:login xmlns:m="urn:partner.soap.sforce.com">
                    <m:username>#UserName#</m:username><!---User Name for login---> <m:password>#Pwd#</m:password><!---Password for Login--->
                    </m:login>
                    </SOAP-ENV:Body><!---end of the body--->
                    </SOAP-ENV:Envelope>
                    </cfsavecontent><!---End of the Login SOAP--->

                    <cfhttp url="https://www.salesforce.com/services/Soap/u/9.0" method="post"><!---Variables to be posted at this URL --->
                    <cfheader name="Content-Type" value="text/xml; charset=utf-8" />
                    <cfhttpparam type="xml" value="#LoginSOAP#" />
                    <cfhttpparam type="header" name="SOAPAction" value="login" /><!---method of the web service--->
                    </cfhttp>

                    <cfdump var="#cfhttp.FileContent#">


                    ****************************************************************