• muthuswi
  • NEWBIE
  • 0 Points
  • Member since 2006

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

Hi

I don't know what is the problem in the following query. I am getting "Expected identifier" error...

Can anyone help me find this?

Thanks

Muthu.

<html>
<head>
<script type="text/javascript" src="/soap/ajax/8.0/connection.js"></script>
<script type="text/javascript">

function init()
{
 deleteRecords();
}
function deleteRecords(fkId)
{       
    var sql = "Select Id FROM myEntity Where fkId__c = '" + fkId + "'";
   
    var qr1 = getRecords(sql); //getRecords returns queryResult...and I am getting records

    if (qr1.length > 0)
    {
 var p_ids = new Array(qr1.length);
    
 for (var i = 0; i < qr1.length; i++)
 {
  var record1 = qr1[i];
         p_ids[i] = record1.Id;        
 }    

        var p_csr = sforce.delete([p_ids]);
    }         
}

</script>
</head>
<body onload="init()">
<p>&nbsp;</p>
</body>
</html>

Hi,
 
I am using salesforce api, and calling binding.getUserinfo(). Will calling getUserinfo() be considered as a seperate api call?
 
Thanks.
 
Muthu.
Hi,
 
How do I check whether my session is alive?
 
Thanks
 
Muthu.
Hi
 
I am using partner wsdl (production), .net framework 1.1, and C#. I am changing sforce.binding.url dynamically  to https://test.salesforce.com/services/Soap/c/8.0 to connect to sandbox instance. Login works fine but I am not getting any data from any of the entities thro' api calls. Can't I use partner wsdl (non sandbox) to connect both the instances (sandbox and production)? What could be the possible way to connect to both instances using a single wsdl? Is it possible?
 
Here is sample code:
 
if (sandBox == true)
               binding.Url = @"https://test.salesforce.com/services/Soap/c/8.0";
else
               binding.Url = @"https://www.salesforce.com/services/Soap/c/7.0";
 
Can anyone help me on this?
 
Thanks in advance.
 
Muthu.

Message Edited by muthuswi on 12-28-2006 12:14 PM

Hi,
 
When I am trying to connect to salesforce, I am getting this exception "Sforceservice.create can not be reflected". I am using .net framework 1.1 and VS2003. Could anyone please help me on this?
 
Thanks in advance.
 
Muthu.
Hi,
 
How do I get custom tab URL using api?
 
Thanks in advance.
 
Muthu
hi
 
i'm trying to get server url from LoginResult object. my application works fine as long as i am logging in for servers..na0, na3,...but when it comes to ssl. i'm not getting the server url with ssl. it returns with na0, and my browser fails with that url.
 
for instance,
 
for my userid and password, from my client application i'm getting url like:
 
 
whereas when login salesforce site using same login and password, i am getting like:
 
 
could anyone help me on this?
 
thanks
 
muthu.
 

Hi

I don't know what is the problem in the following query. I am getting "Expected identifier" error...

Can anyone help me find this?

Thanks

Muthu.

<html>
<head>
<script type="text/javascript" src="/soap/ajax/8.0/connection.js"></script>
<script type="text/javascript">

function init()
{
 deleteRecords();
}
function deleteRecords(fkId)
{       
    var sql = "Select Id FROM myEntity Where fkId__c = '" + fkId + "'";
   
    var qr1 = getRecords(sql); //getRecords returns queryResult...and I am getting records

    if (qr1.length > 0)
    {
 var p_ids = new Array(qr1.length);
    
 for (var i = 0; i < qr1.length; i++)
 {
  var record1 = qr1[i];
         p_ids[i] = record1.Id;        
 }    

        var p_csr = sforce.delete([p_ids]);
    }         
}

</script>
</head>
<body onload="init()">
<p>&nbsp;</p>
</body>
</html>

Hi
 
I am using partner wsdl (production), .net framework 1.1, and C#. I am changing sforce.binding.url dynamically  to https://test.salesforce.com/services/Soap/c/8.0 to connect to sandbox instance. Login works fine but I am not getting any data from any of the entities thro' api calls. Can't I use partner wsdl (non sandbox) to connect both the instances (sandbox and production)? What could be the possible way to connect to both instances using a single wsdl? Is it possible?
 
Here is sample code:
 
if (sandBox == true)
               binding.Url = @"https://test.salesforce.com/services/Soap/c/8.0";
else
               binding.Url = @"https://www.salesforce.com/services/Soap/c/7.0";
 
Can anyone help me on this?
 
Thanks in advance.
 
Muthu.

Message Edited by muthuswi on 12-28-2006 12:14 PM

Hi,
 
When I am trying to connect to salesforce, I am getting this exception "Sforceservice.create can not be reflected". I am using .net framework 1.1 and VS2003. Could anyone please help me on this?
 
Thanks in advance.
 
Muthu.

All,

 

I am having an issue running the basicSample_cs to demonstrate connectivity using C#.  I believe my problem is more of a C# issue, rather than Salesforce.com, but I am hoping that someone on the discussion boards has ran into this issue before and found a way to correct it.

 

I have setup the basicSample code and have been able to have it execute correctly, logging into my developer org_unit, when there isn’t a proxy server involved.  However, I have attempted to do the same on a network that requires a proxy server to access internet addresses, and I have been unable to achieve even a successful login.

 

The network I am on uses a proxy server script, so I don’t think the “auto-locating” of the proxy information is working by default in C#.   I have also tried to set the proxy server address manually using the following lines of code, but it doesn’t appear to be working.

 

<code snippet>

 

WebProxy myWebProxy = new WebProxy();

// Real address used in actual code

Uri newUri = new Uri("http://proxy_server:port_number");

myWebProxy.Address = newUri;

binding = new SforceService();

binding.Timeout = 15000;

binding.Proxy = myWebProxy;

 

I am unsure if there is another property I need to set? 

 

Any help would be greatly appreciated!

 

Thanks!