AF
HomeTagSubmit NotesAsk AnythingLoginSubscribe Us
AF
1. Feel Free to ask and submit anything on Anyforum.in and get satisfactory answer
2. Registration is not compulsory, you can directly login via google or facebook
3. Our Experts are looking for yours ?.



web-service-netsuite: how to get item from saved search using web services in C-sharp

how to get item from item saved search using web services of C#

web-service x 19
netsuite x 18
Posted On : 2015-02-25 10:56:48.0
profile Amol Ghadage - anyforum.in Amol Ghadage
2900
up-rate
3
down-rate

Answers


getSavedSearch:
-----------------------------------------
This operation allows users to retrieve a list of existing saved search IDs on a per-record-type basis (for example, all saved search IDs for every Customer saved search). Note that once you retrieve the list of saved search IDs, you may need to look in the NetSuite UI to see the criteria defined for the saved search. To navigate to the list of saved searches in the NetSuite UI, go to Lists > Search > Saved Searches.

This API takes a search record type as a request argument and returns a list of record references of the saved search.

For use cases explaining why you would want to get a list of saved search IDs and then reference a specific ID in your code, see Reference Existing Saved Searches.

Note: There is no async equivalent for this operation.


C#
---------------------------
GetSavedSearchRecord record = new GetSavedSearchRecord();
record.searchTypeSpecified = true;
record.searchType = SearchRecordType.transaction;
GetSavedSearchResult result = nss.getSavedSearch(record);

Posted On : 2015-02-26 23:00:19
Satisfied : 1 Yes  1 No
profile Rishi Kumar - anyforum.in Rishi Kumar
523188250044
Reply This Thread
up-rate
8
down-rate
Comments
Prince Raj u r right but Can u tell me how to fetch custom field column from save search...
I posted how to fetch standard field column from save search...

using that code can u tell me as soon as possible plz...
profile Amol Ghadage - anyforum.in Amol Ghadage
29  0  0
Posted On :2015-02-27 09:43:02.0
Leave a Comment

ItemSearchAdvanced searchItems = new ItemSearchAdvanced();
searchItems.savedSearchScriptId = "customsearch_itemsearchpos";

SearchResult result = _service.search(searchItems);
int totalRecords = 0;
int processedRecords = 0;

if (result.status.isSuccess)
{

SearchRow[] searchRows = result.searchRowList;
if (searchRows != null && searchRows.Length >= 1)
{
string display_Name = "Null";

for (int i = 0; i < searchRows.Length - 1; i++)
{
ItemSearchRow itemRow = (ItemSearchRow)searchRows[i];



string uniqueProductCode = itemRow.basic.upcCode[0].searchValue;

//string ManufacturerPartNumber = itemRow.basic.mpn[0].searchValue;
//decimal ContractPrice = Convert.ToDecimal(itemRow.basic.basePrice[0].searchValue);
//// decimal Cost = CalculateProductCostForIngram(Convert.ToDecimal(itemRow.basic.basePrice[0].searchValue));
if (itemRow.basic.displayName != null)
{
display_Name = itemRow.basic.displayName[0].searchValue;

}
processedRecords++;
}

totalRecords++;
}

}




This .Net ans is right for standard filed but I want to fetch customfield column from saved search using web sevices that I cant achieve so plz help me in that if u can..

Posted On : 2015-02-27 09:34:38
Satisfied : 1 Yes  0 No
profile Amol Ghadage - anyforum.in Amol Ghadage
2900
Reply This Thread
up-rate
0
down-rate



Post Answer
Please Login First to Post Answer: Login login with facebook - anyforum.in