• micchris
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies

In the User's Guide there is a sample http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_test.htm?CSHID=apex_methods_system_test.htm#TestLoadDataExampleSection

of how to use the Test.loadData method to load a csv file with Accounts.

 

I cannot see any documentation nor samples showing how to load records with references (lookup or master-detail) to parent records - e.g. if I want to load Contacts, which refer to Accounts.

 

Anyone who knows. I suppose I am not going to "invent" record IDs????

I received "Failed to parse wsdl:target Name space not specified in wsdl:definitions" error when attempting to generate Apex from a WSDL. The WSDL definitions tag looked fine:

 

<wsdl:definitions
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tns="http://myserver.com/salesforce/CreditAuthorizationService"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://myserver.com/salesforce/CreditAuthorizationService">

 

However, only by making this little change – moving the first attribute to the first attribute to the same line as the tag start – the parser accepted the WSDL:

 

<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tns="http://myserver.com/salesforce/CreditAuthorizationService"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://myserver.com/salesforce/CreditAuthorizationService">

 



In the User's Guide there is a sample http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_test.htm?CSHID=apex_methods_system_test.htm#TestLoadDataExampleSection

of how to use the Test.loadData method to load a csv file with Accounts.

 

I cannot see any documentation nor samples showing how to load records with references (lookup or master-detail) to parent records - e.g. if I want to load Contacts, which refer to Accounts.

 

Anyone who knows. I suppose I am not going to "invent" record IDs????

how can we retrieve in a SOQL statement the currency name? (not the isoCode)