function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
EBezEBez 

Newbie problem with sample Search_2003

I just installed Visual Studio .NET 2003, the sforce toolkit, and the samples for VB.NET

Good news: Login_2003 worked like a champ on the first attempt! 

Not-so-good news:  I am a bit confused on the behavior of the Search_2003 sample.  It works fine if I enter an account name that exactly matches (e.g., "sForce").  However, if I enter a search value like "Un", it returns 0 items.  Is this the expected behavior?  I thought it would return a list of items that matched the search (e.g., "University of Arizona", "United Oil & Gas, UK", etc.).

Can somebody explain what is going on?

Thanks,

Ebez

 

EBezEBez

Oops.  I'm lame.  Search works as expected if I use a "*" wildcard (e.g., search for "Un*")

I guess I was confused because I was looking at the 2.0 API documentation for search, which says that a phrase search is used, but it looks like the behavior is pre-2.0 (advanced search syntax).  Is this correct? 

DevAngelDevAngel

Hi EBez,

Yes that is correct.  Also, search requires at least 3 characters.