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

How do i login to salesforce

New Here ,
Mar 31, 2015 Mar 31, 2015

Copy link to clipboard

Copied

Someone, anyone.  I need a simple way to login to salesforce.  I have tried everything with no success.  Using SOAP UI everything works fine.   I run the request and it spits out everything necessary.  Problem is i just cannot seem to get it to work in CF.  I have tried <cfinvoke>, <cfhttp>.  Someone please.

This is the successful SOAP UI request: https://test.salesforce.com/services/Soap/u/32.0

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:partner.soap.sforce.com">

   <soapenv:Header>

   </soapenv:Header>

   <soapenv:Body>

      <urn:login>

         <urn:username>username</urn:username>

         <urn:password>password</urn:password>

      </urn:login>

   </soapenv:Body>

</soapenv:Envelope>

And it returns this response in SOAP UI.  How can i get CF to return this so i can pull out certain variables:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:partner.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

   <soapenv:Body>

      <loginResponse>

         <result>

            <metadataServerUrl>https://cs18.salesforce.com/services/Soap/m/32.0/00D1100000089tU</metadataServerUrl>

            <passwordExpired>false</passwordExpired>

            <sandbox>true</sandbox>

            <serverUrl>https://etc</serverUrl>

            <sessionId>something</sessionId>

            <userId>something</userId>

            <userInfo>

               <accessibilityMode>false</accessibilityMode>

               <currencySymbol xsi:nil="true"/>

               <orgAttachmentFileSizeLimit>26214400</orgAttachmentFileSizeLimit>

               <orgDefaultCurrencyIsoCode xsi:nil="true"/>

               <orgDisallowHtmlAttachments>false</orgDisallowHtmlAttachments>

               <orgHasPersonAccounts>false</orgHasPersonAccounts>

               <organizationId>something</organizationId>

               <organizationMultiCurrency>true</organizationMultiCurrency>

               <organizationName>Alcatel-Lucent Enterprise</organizationName>

               <profileId>something</profileId>

               <roleId>something</roleId>

               <sessionSecondsValid>14400</sessionSecondsValid>

               <userDefaultCurrencyIsoCode>USD</userDefaultCurrencyIsoCode>

               <userEmail>something@alcatel-lucent.com</userEmail>

               <userFullName>something</userFullName>

               <userId>something</userId>

               <userLanguage>en_US</userLanguage>

               <userLocale>en_US</userLocale>

               <userName>something@alcatel-lucent.com.ebc</userName>

               <userTimeZone>America/Los_Angeles</userTimeZone>

               <userType>Standard</userType>

               <userUiSkin>Theme3</userUiSkin>

            </userInfo>

         </result>

      </loginResponse>

   </soapenv:Body>

</soapenv:Envelope>

Views

1.2K

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
no replies

Have something to add?

Join the conversation
Resources
Documentation