• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Cold Fusion and SalesForce

New Here ,
May 08, 2007 May 08, 2007

Copy link to clipboard

Copied

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
TOPICS
Advanced techniques

Views

1.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 20, 2007 Jun 20, 2007

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jun 21, 2007 Jun 21, 2007

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 21, 2007 Jun 21, 2007

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 10, 2007 Jul 10, 2007

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 13, 2007 Jul 13, 2007

Copy link to clipboard

Copied

Hey Amit,

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

FS

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 16, 2007 Jul 16, 2007

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 16, 2007 Jul 16, 2007

Copy link to clipboard

Copied

LATEST
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#">


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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation