I'm looking to create a new search in my C# code, which will return custom fields from a number of different contacts. I don't know which contacts or how many of them there will be as this is determined by another non-NetSuite database. The idea is this:
[LIST]
[*]look at this non-NetSuite database, find the contact IDs I need
[*]Create an array of contact IDs
[*]pass this array to a script that will create the search and criteria
[*]loop through the array and add new criteria to my search
[/LIST]
Questions:
Can this be done? i.e. can I construct multiple criteria for a search, where the returned results will be for contact a OR contact b OR contact c, etc.
I saw another post where sklett was asking for OR operators, and elham said that this is a feature request - any update on this yet?
Assuming I cannot do this, I'm left with two options (unless someone can give me other options):
[LIST=1]
[*]Stick with using ODBC and a regular SQL Query - I'm currently replacing ALL my ODBC queries, as I've found that not only is getting data ODBC extremely slow (over 4 seconds to return just one record), but that that length of time is very erratic, meaning that sometimes that one result can take 20 seconds, with no reasonable explanation, or...
[*]Pass the array of contact IDs to my script and do one search per contact ID, then merge all the returned results into one dataset.
[/LIST]
If I have up to, let's say... 10 contacts to look for I think option 2 might be easier, but there is the possibility of having to look for 40 to 80 contacts at a time.
Any advice here?