• Rohit
  • NEWBIE
  • 0 Points
  • Member since 2005

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies
Hi Guys,
 
Have been getting REQUEST_LIMIT_EXCEEDED from Sunday 2 AM on my Dev environment. Wondering if there is weekly request limit aswell apart from there being a 24 Hr limit. As I presume the block should have been removed, as its way past 24 Hr from the first login failure.
 
Regards,
 
Rohit
  • April 03, 2006
  • Like
  • 1

Hi, I am relatively new to sforce, so maybe I am missing something obvious here. I am trying to retrive Lead details(through the lead ID).


Question : How do I check to see if a valid lead corresponding to that ID is returned. Checking for sobjects !=null && sobjects.Length > 0 does not seem to be doing the trick. 


The code is as follows....


private sforce.Lead getLead(string LeadID)


{


String[] ids = null;


sforce.Lead lead = null;


try


{


ids = new string[] {LeadID};



sforce.sObject[] sobjects = binding.retrieve("City, Company, Country, Email, FirstName, OwnerId, Phone, Salutation, State, Street, Title, Website","lead",ids);


if (sobjects != null && sobjects.Length > 0)


{


lead = (sforce.Lead)sobjects[0];


CompanyName = lead.Company;


return lead;


}


else


{


// Can I capture the errors returned by sobject collection here???


return null;


}


}


catch(Exception ex)


{


throw new ApplicationException(" Error in retriving Lead information :" + ex.Message );



}


}


 


Cheers,


 


Rohit

  • February 28, 2006
  • Like
  • 0
Hi Guys,
 
Have been getting REQUEST_LIMIT_EXCEEDED from Sunday 2 AM on my Dev environment. Wondering if there is weekly request limit aswell apart from there being a 24 Hr limit. As I presume the block should have been removed, as its way past 24 Hr from the first login failure.
 
Regards,
 
Rohit
  • April 03, 2006
  • Like
  • 1
Hi Guys,
 
Have been getting REQUEST_LIMIT_EXCEEDED from Sunday 2 AM on my Dev environment. Wondering if there is weekly request limit aswell apart from there being a 24 Hr limit. As I presume the block should have been removed, as its way past 24 Hr from the first login failure.
 
Regards,
 
Rohit
  • April 03, 2006
  • Like
  • 1

Hi, I am relatively new to sforce, so maybe I am missing something obvious here. I am trying to retrive Lead details(through the lead ID).


Question : How do I check to see if a valid lead corresponding to that ID is returned. Checking for sobjects !=null && sobjects.Length > 0 does not seem to be doing the trick. 


The code is as follows....


private sforce.Lead getLead(string LeadID)


{


String[] ids = null;


sforce.Lead lead = null;


try


{


ids = new string[] {LeadID};



sforce.sObject[] sobjects = binding.retrieve("City, Company, Country, Email, FirstName, OwnerId, Phone, Salutation, State, Street, Title, Website","lead",ids);


if (sobjects != null && sobjects.Length > 0)


{


lead = (sforce.Lead)sobjects[0];


CompanyName = lead.Company;


return lead;


}


else


{


// Can I capture the errors returned by sobject collection here???


return null;


}


}


catch(Exception ex)


{


throw new ApplicationException(" Error in retriving Lead information :" + ex.Message );



}


}


 


Cheers,


 


Rohit

  • February 28, 2006
  • Like
  • 0