Skip to content

Instantly share code, notes, and snippets.

@switchspan
Last active June 15, 2018 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save switchspan/fd1f5283130f21e20edc3df1a919031c to your computer and use it in GitHub Desktop.
Save switchspan/fd1f5283130f21e20edc3df1a919031c to your computer and use it in GitHub Desktop.
Mule Netsuite SavedSearch Criteria JavaComponent
import org.mule.api.MuleEventContext;
import org.mule.api.lifecycle.Callable;
import com.netsuite.webservices.lists.relationships.CustomerSearchAdvanced;
public class CustomerSearchAdvancedSavedComponent implements Callable {
@Override
public Object onCall(MuleEventContext eventContext) throws Exception {
CustomerSearchAdvanced searchCriteria = new CustomerSearchAdvanced();
searchCriteria.setSavedSearchScriptId("customsearch_agentgoodstanding");
//searchCriteria.setSavedSearchId("611");
return searchCriteria;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment