Retrieve Purchase Orders


For retrieving Purchase Orders I am using the following code

_nsService.tokenPassport = CreateTokenPassport();
TransactionSearchBasic tr = new TransactionSearchBasic()
type = new SearchEnumMultiSelectField()
@operator = SearchEnumMultiSelectFieldOperator.anyOf,
searchValue = new[] { “_purchaseOrder” },
operatorSpecified = true,
tranId = new SearchStringField()
@operator = SearchStringFieldOperator.@is,
searchValue = orderNum,
operatorSpecified = true
SearchResult searchResult =;
return searchResult.recordList;

it works but very slow, how can I speed it up ?

Rookie Asked on March 21, 2023 in Other.
Add Comment
1 Answer(s)


How slow are we talking?

What data do you need from the PO?

Could you consider performing the operation asynchronously?



Intermediate Answered on March 21, 2023.


It takes 17 seconds

on March 21, 2023.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor   Become a Sponsor