• RYaker
  • NEWBIE
  • 0 Points
  • Member since 2004

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 19
    Questions
  • 15
    Replies
According to what I read in the docs the calls should work the same describeObjectResult should include an array of the Fields[] in a given object. However if I use endpoint

https://www.salesforce.com/services/Soap/u/5.0

I get back a list of Fields[], and if I use endpoint

https://www.salesforce.com/services/Soap/u/7.0

Fields[] is a single field not an array.

I am using the API from the old PHP toolkit.

I am attempting to write an sforce control / WIL that will create a copy of an existing opportunity.  We are looking at using record types to "lock down" our closed opportunities.  This control will be used when sales needs to handle a contract renewal.  The control would insert a new opportunity using some of the fields on the locked opportunity and reset the record type so the new opp can be edited. .  

The problem I am having is in setting the Close Date on the opportunity.  Javascript's Date object doesn't seem to work nor does passing the date as a string.  I saw one message on this board regarding the use of the primitive datatypes but haven't been able to figure out how to incorporate that into the xml.   I am using the Enterprise WSDL. 

Anyone have any ideas? 

(The script I am using came from a message on this board regarding how to perform a calculation and udpate the opportunity record from a WIL.)

 

A user with at Standard Profile can access and successfully pass the Org_ID in a web link from within the SFDC GUI. This same user is unable to login via the API and retrieve the Org_ID without being assigned the "view all data" rights.
Using partner wsdl w/ 5.0 API.

This soap message gave me: common.exception.ApiException: Must send a concrete entity type." any help

 

<SOAP-ENV:Envelope
    xmlnsSOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlnsxsd="http://www.w3.org/2001/XMLSchema"
    xmlnsxsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlnsSOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
    xmlnsns4="urn:enterprise.soap.sforce.com">
   <SOAP-ENV:Header">

      <ns4:SessionHeader SOAP-ENV:actor="http://schemas.xmlsoap.org/soap/actor/next" SOAP-ENV:mustUnderstand="0"">

         <ns4:sessionId">
2B5EBcdbCQyx100n_l.Tc9IJxB58ycqeQpNjxYxLn.WHHWcAzBCOJiKQ326vI.rVa48ZzIdoYXXueiqB7dpq4jteaH1xyGi1ns4:sessionId>

      
  </ns4:SessionHeader">

   
  </SOAP-ENV:Header">

   <SOAP-ENV:Body">

      <ns4:update">

         <ns4:sObjects">

            <ns4:type>Account_Environment_Profile__c</ns4:type">
            <ns4:Id>a0130000000Ib75AAC</ns4:Id">

            <ns4pportunity__c">
00630000001p257</ns4pportunity__c">
         
  </ns4:sObjects">

      
  </ns4:update">

   
  </SOAP-ENV:Body">

  </SOAP-ENV:Envelope">

<?xml version="1.0" encoding="UTF-8"?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns4="urn:enterprise.soap.sforce.com"
>
<SOAP-ENV:Header>

<ns4:SessionHeader SOAP-ENV:actor="http://schemas.xmlsoap.org/soap/actor/next" SOAP-ENV:mustUnderstand="0">
<ns4:sessionId>vnBx6uDEQnw.FPi5KwcXjh9wKr63cngqkk3sW4phR7C_Zw2uMVDxYcLaxC9.OTMZzJJr.XY7uh1aldSO_EJZ9DteaH1xyGi1</ns4:sessionId></ns4:SessionHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>

<ns4:create>
<ns4:sObjects>
<ns4:type>Lead</ns4:type>
<ns4:City>San Francisco</ns4:City>
<ns4:Company>Hotwire</ns4:Company>
<ns4:Country>USA</ns4:Country>
<ns4:Email>wally@hotwire.com</ns4:Email>
<ns4:FirstName>Wally</ns4:FirstName>
<ns4:Industry>ecommerce/travel</ns4:Industry>
<ns4:Inquiry__c>General / Pending</ns4:Inquiry__c>
<ns4:LastName>Finley</ns4:LastName>
<ns4hone>415-343-8484</ns4hone>
<ns4ostalCode>94105</ns4ostalCode>
<ns4:State>CA</ns4:State>
<ns4:Street>333 Market Street, Suite 100 </ns4:Street></ns4:sObjects></ns4:create>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Using PHP.
Here is SOAP envelope being sent to Salesforce.
Any idea why I am getting "Must send a concrete entity type" when I go to create a new lead given this SOAP message.





xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns4="urn:partner.soap.sforce.com"
xmlns:ns5="urn:enterprise.soap.sforce.com"
>



rO43lx09sC_byGJrgwfaxMho6CiZUyXxXoqZ1rMYO5pxv74Kj13nTn3Lg75LKPbaWpXUjvhCWfSYIcfzL6CHxDteaH1xyGi1





Lead
San Francisco
Hotwire
USA
wally@hotwire.com
Wally
ecommerce/travel
General / Pending
Finley
hone>415-343-8484hone>
ostalCode>94105ostalCode>
CA
333 Market Street, Suite 100

I've seen a few discussions about assignment rules and having them automatically assigned. I was wondering if there was a simple way to have a new Lead that is populated via the sforce PERL API use the assignement rules found in salesforce?
is it possible to create custom fields or custom objects from the API?
results     (code,soapenv:Server.userException)
results     (message,common.exception.ApiException: Must send a concrete entity type.)


FIELDS     (type,Lead)
FIELDS     (FirstName,Gary)
FIELDS     (LastName,Raizes)
FIELDS     (Company,NIH)
FIELDS     (Phone,2025551210)
FIELDS     (Street,175 13th Street, NW)
FIELDS     (City,Washington)
FIELDS     (State,DC)
FIELDS     (Zip,20013)
FIELDS     (Country,USA)


Any ideas what I am missing in my sObject?

Greetings all,

I was curious if I'm just missing something, but I couldn't find anything about this in the docs.  Could someone step me through creating custom objects in SForce4.0?  I looked in the resources section, and maybe I'm just looking with my eyes closed again, but I didn't find anything that was, say "Custom Objects 101". 

My question boils down to, how do we create a custom object and, in doing that, do we create a new table in the SForce database to populate via the web service API?

Thanks in advance,

Eric

Does anyone have any sample code on updating or creating an opportunity?

I am able to do all of this based on the sample code:

  1. Login
  2. Query Leads and view all the fields
  3. Query all Opportunities and view all the fields
  4. Update various fields in the "Leads" section

When I try to update the "opportunity" section, it does not update and does not give me an error message.

Any help would be appreciated,

Brian

Using sforce 2.5, I understand how to create instances of custom objects once they are defined, but is it possible to create the actual classes with their fields using the sforce 2.5 API?  I know that I can create custom classes and fields for those classes using the sforce UI, but it is definitely not scalable to require all users to do this.

I tried the PHP demonstration of Byrne Reese out. This, so far, only supports querying. I ask myself whether there are already extensions which allow to create, delete, update? Is that still to come? Each ìnfo/advice is welcome.

We have an issue with duplicates in SF.com, primarily with leads & contacts.  For those of you that purchase big lists and mail to them (in which case some of the names you purchase MAY already be in SF.com as leads or contacts), how do you go about getting that information into SF.com without creating tons of duplicates? 

Does anyone else have an issue with the way the Leads module is set up?

THanks,

Brian