• LongneckJohn
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 14
    Questions
  • 3
    Replies

I am using the following code:

 

Public Sub CreateLead()
        Dim lead1 As New Lead()
        ' Set some fields on the lead object.
        lead1.FirstName = "John"
        lead1.LastName = "Langlois"
        lead1.Email = "john@longnecksolutions.com"
        lead1.Company = "No Company"
        Dim ourDouble As Double = 10
        lead1.Contract_Amount__c = ourDouble
        
        Dim strMonth As String = DatePart("m", Now())
        Dim strDay As String = DatePart("d", Now())
        Dim strYear As String = DatePart("yyyy", Now())
        Dim strHour As String = DatePart("h", Now())
        Dim strOurdate As String
        Dim strHalf As String
        If strHour > 12 Then
            strHour = strHour - 12
            strHalf = "PM"
        Else
            strHalf = "AM"
        End If
        Dim strMin As String = DatePart("m", Now())

        strOurdate = strMonth & "/" & strDay & "/" & strYear & " " & strHour & ":" & strMin & " " & strHalf
        lead1.Received_Contract__c = strOurdate
        lead1.Alt_Email__c = "me2@Alt.com"
        
        
        
        ' Create an array of SObjects to hold the leads
        Dim leads As sObject() = New sObject(0) {}
        ' Add the leads to the SObject array
        leads(0) = lead1
        
        ' Invoke the create() call
        Try
            Dim saveResults As SaveResult() = binding.create(leads)
       
            ' Handle the results
            For i As Integer = 0 To saveResults.Length - 1
                ' Determine whether create() succeeded or had errors
                If saveResults(i).success Then
                    ' No errors, so retrieve the Id created for this record
                    Response.Write("A Lead was created with Id: " & saveResults(i).id & "<br>")
                Else
                    Response.Write("Item " & i & " had an error updating<br>")
               
                    ' Handle the errors
                    For Each [error] As [Error] In saveResults(i).errors
                        Response.Write("Error code is: " & [error].statusCode.ToString() & "<br>")
                        Response.Write("Error message: " & [error].message & "<br>")
                    Next
                End If
            Next
        Catch e As SoapException
            Response.Write(e.Code)
            Response.Write(e.Message)
        End Try
    End Sub

 

The text fields are adding with the new record but the other fields, date and currency.... are not.

 

What amI doing wrong?

 

John

I have reached my 24 hour limit.  Can I see a log of my 6000 api calls so I can see where I used all my allocated resources?

I am trying to get the sample defined in:

 

 http://wiki.developerforce.com/index.php/Force.com_for_ASP.NET_Developers

 

to work.

 

when I try saving the leadLookupController as descripbed on page 4 I get an error:

 

 

Error

Error: Unknown property 'searchString'

 

 

 

is this document out of date?

 

is there a more current document?

 

 

 

I only want email and name selected?

 

Can I change the defaulty sort once the duplocates have been selected?

 

Thanks

I am trying to create my first APEX class. 

 

I go to setup/Develop/Apex Classes

 

I do not see a new button?

 

What am I doing wrong???

 

Thanks in advance for ony help!

 

John

I downloaded the data loader but can not sign on.  I am getting an invalid user name/password.  Is this the same as my normal login?

 

John

I have sql server table with 400K+ records.  Some of this data has columns with commas and other special characters in it.

 

What is the best way to export the data from SQL server in a format that can be imported in SF?

 

Thanks

 

John

I am using web to lead to load records into salesforce.  Can I disable the auto response?

 

Thanks

 

John

I have multiple web to lead forms.  each web to lead form updates different custome fields in the lead record.

 

I want a unique auto responder for each unique form.  The first form works great the second does not send an autoresponder.  

 

Any ideas?

 

John

I need to add attchments to leads.  I do not see the related list?

 

What am I missing?

 

John

And can the web to lead form be used to capture this data?

I set up and automated response and have a question.  The email was sent from 10.226.81.23

 

Is this a clean IP address?

 

Thanks

 

John

I am using web to lead and I have three custome fields.  Two are text fields and seem to work just fine.

 

The third is a date field and I do not seem to be able to capture the date/time that is in the text box?

 

Any ideas?

 

Thanks

 

John

I need to have several web to lead forms.  Can each of these forms have there own automated response?

 

Thanks

I am using web to lead to load records into salesforce.  Can I disable the auto response?

 

Thanks

 

John

Hi,

 

just wanted to tell that we've just published a Salesforce integration project for .NET on Google Code.

It is considered ver 0.1 and you're free to download and test in your projects.

 

It's quite simple to use:

 

protected void btnSearchAccount_Click(object sender, EventArgs e) { Account account = new AccountController().GetByName(txtAccountSearch.Text); lblAccountResult.Text = account != null ? account.Name : "No result"; }

 

This is just a beginning of something that can grow. If you want to join the development, please let me know.

 

http://code.google.com/p/salesforce-dotnet/

 

Best regards

Stian