• Vineet Gogia
  • NEWBIE
  • 0 Points
  • Member since 2003

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 4
    Replies

Hi,

Is is possible to Access the E-Mail Template Names via API ?

If yes , please let me know how?

Thanks,

Hi,

In the Login call

#1: If we provide wrong User name and password the faultcode returned is 1112, which is as per documentation

#2: If we provide a correct User name but wrong password, the faultcode returned is "0", while it should have been 1112.

Anything that we are mis-interpreting, any suggestions?

Thanks,
Vineet

Hi there ,

I am  using Salesforce soap api to build the our application in asp/vb.net 2003. while debugging  I encounter logins and logout  enumurous time. but problem arises when i have to close application without logout. if i do it for several times (say more than 10 times) the soap api Starts giving error " object refrence not set to an instance"  in logon call.

the error continues  for for another 1-2 hours. till than i have to stop my work and sit back.

Please help!!

Thanx,
DotNetDevil.

 

There are 734 records in source Salesforce account and as per the salesforce API documentation we can query the attachments one by one.  How can we transfer these 734 attachments in mass.

Hi,

Im trying to develope an application in .NET environment with SForce API. While trying to run the code downloaded from sForce.com in VB.NET the following error is shown

The server returned the following fault information:

Fault Code: 0

Fault string: invalid date format: 0001-01-01T00:00:00.0000000+0530

The program '[1636] QueryFilter.exe' has exited with code 0 (0x0).

The Function where the error is reported is reproduced for your reference: (class clsSForce.vb in QueryFilter_2003 Sample Code for VB.NET)

++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Friend Function SampleQueryFilter_Simple(ByVal SelectList() As String) As Boolean

Dim ret() As Object

Dim filter(0) As Object 'Final filter array

'Create simple filter

filter(0) = MakeSimpleFilter("ownerID", MyID, "equals")

Try

ret = sForce.query("filter", "contact", 20, SelectList, filter, Nothing, Nothing, False)

Catch ex As System.Web.Services.Protocols.SoapHeaderException

'This is typical error handling for fault detection and reporting, the .Net Proxy client actually throws an

'error rather than return the fault SOAP Message.

Trace.WriteLine("The server returned the following fault information:")

Trace.WriteLine("Fault Code: " & CType(CType(ex, System.Web.Services.Protocols.SoapException).Code, System.Xml.XmlQualifiedName).Name())

Trace.WriteLine("Fault string: " & ex.Message)

Return False

End Try

Try

Dim i As Integer = 1

Dim j As Integer

Dim rootNode As System.Xml.XmlElement = ret(0)

If rootNode.InnerText.Length > 0 Then

Dim children As System.Xml.XmlNodeList = rootNode.SelectNodes("valueMap")

Dim valueNode As System.Xml.XmlNode

For Each valueNode In children

Console.WriteLine("record " & i)

For j = SelectList.GetLowerBound(0) To SelectList.GetUpperBound(0)

Console.Write(vbTab & SelectList(j) & ": ")

Dim textNode As Xml.XmlNode = valueNode.SelectSingleNode(SelectList(j))

If Not textNode Is Nothing Then

Console.Write(valueNode.SelectSingleNode(SelectList(j)).InnerText)

Else

Console.Write("")

End If

Console.WriteLine(", ")

Next

Console.WriteLine(" ")

i += 1

Next

Return True

Else

Return False

End If

Catch ex As System.Exception

System.Diagnostics.Trace.WriteLine("Unexpected error: " & ex.Message)

Return False

End Try

End Function

++++++++++++++++++++++++++++++++++++++++++++++++++++

Please help
Vineet Gogia

Hi,

Is there a way to know the permissions that are enabled for a particular user using the API 2.0. For example we need to know if a particular user has the permission "MANAGE_ALL_DATA", enabled?

Thanks,
Vineet Gogia
Theikos
Hi,

Is there a way to get the Organization ID of the Users (ID of the organization to which the users belong)? What kind of a permission would be needed to get this information? Also I went through the SForce API 2.0 and specifically through the ERD's but could not locate an entity by the name of Organization. Is there a different name for it or something that I'm missing?


Regards,
Vineet Gogia
Theikos.

I am new to sforce (just a day old) and it seems quite a strange problem but when an object of SforceService gives a  call to login(username, pwd) method, the following message is displayed in the console:

The request failed with the error message:
--
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>301 Moved Permanently</TITLE>
</HEAD><BODY>
<H1>Moved Permanently</H1>
The document has moved <A HREF="http://www.salesforce.com/us/products/customer-service-support.jsp">here</A>.<P>
</BODY></HTML>

--.

Now this was working fine till yesterday and logged the user successfully.The soap:address location in the WSDL file is still the same https://www.salesforce.com/services/Soap/c/2.5

Can anybody throw some light why it is happening today?

Thanks

  • December 05, 2003
  • Like
  • 0

Hi,

Im trying to develope an application in .NET environment with SForce API. While trying to run the code downloaded from sForce.com in VB.NET the following error is shown

The server returned the following fault information:

Fault Code: 0

Fault string: invalid date format: 0001-01-01T00:00:00.0000000+0530

The program '[1636] QueryFilter.exe' has exited with code 0 (0x0).

The Function where the error is reported is reproduced for your reference: (class clsSForce.vb in QueryFilter_2003 Sample Code for VB.NET)

++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Friend Function SampleQueryFilter_Simple(ByVal SelectList() As String) As Boolean

Dim ret() As Object

Dim filter(0) As Object 'Final filter array

'Create simple filter

filter(0) = MakeSimpleFilter("ownerID", MyID, "equals")

Try

ret = sForce.query("filter", "contact", 20, SelectList, filter, Nothing, Nothing, False)

Catch ex As System.Web.Services.Protocols.SoapHeaderException

'This is typical error handling for fault detection and reporting, the .Net Proxy client actually throws an

'error rather than return the fault SOAP Message.

Trace.WriteLine("The server returned the following fault information:")

Trace.WriteLine("Fault Code: " & CType(CType(ex, System.Web.Services.Protocols.SoapException).Code, System.Xml.XmlQualifiedName).Name())

Trace.WriteLine("Fault string: " & ex.Message)

Return False

End Try

Try

Dim i As Integer = 1

Dim j As Integer

Dim rootNode As System.Xml.XmlElement = ret(0)

If rootNode.InnerText.Length > 0 Then

Dim children As System.Xml.XmlNodeList = rootNode.SelectNodes("valueMap")

Dim valueNode As System.Xml.XmlNode

For Each valueNode In children

Console.WriteLine("record " & i)

For j = SelectList.GetLowerBound(0) To SelectList.GetUpperBound(0)

Console.Write(vbTab & SelectList(j) & ": ")

Dim textNode As Xml.XmlNode = valueNode.SelectSingleNode(SelectList(j))

If Not textNode Is Nothing Then

Console.Write(valueNode.SelectSingleNode(SelectList(j)).InnerText)

Else

Console.Write("")

End If

Console.WriteLine(", ")

Next

Console.WriteLine(" ")

i += 1

Next

Return True

Else

Return False

End If

Catch ex As System.Exception

System.Diagnostics.Trace.WriteLine("Unexpected error: " & ex.Message)

Return False

End Try

End Function

++++++++++++++++++++++++++++++++++++++++++++++++++++

Please help
Vineet Gogia

Hi,

Is there a way to get the Organization ID of the Users (ID of the organization to which the users belong)? What kind of a permission would be needed to get this information? Also I went through the SForce API 2.0 and specifically through the ERD's but could not locate an entity by the name of Organization. Is there a different name for it or something that I'm missing?


Regards,
Vineet Gogia
Theikos.