How to request the results of an existing saved se...
# ask-stanley-ai
c
How to request the results of an existing saved search using the SOAP API?
c
AI generated answer (using internal Slack threads):
To request the results of an existing saved search using the SOAP API, you need to use the
search
operation and specify the
savedSearchId
in the
searchRecord
element. However, you also need to define the
xsi:type
attribute. Here is an example of how to do this:
Copy code
xml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:messages_2017_1.platform.webservices.netsuite.com" xmlns:urn1="urn:core_2017_1.platform.webservices.netsuite.com">
   <soapenv:Header>
      ...
   </soapenv:Header>
   <soapenv:Body>
      <search>
         <searchRecord xsi:type="urn1:TransactionSearchAdvanced" savedSearchId="57">
         </searchRecord>
      </search>
   </soapenv:Body>
</soapenv:Envelope>
In this example, the
xsi:type
attribute is set to
urn1:TransactionSearchAdvanced
, which is the type of the saved search. The
savedSearchId
is set to
57
, which is the ID of the saved search. Please replace
TransactionSearchAdvanced
and
57
with the type and ID of your saved search. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.87199533
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.862255931
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.848924279
Please provide your feedback on this answer.
c
How would I find a list of types, or the type of the search query I'm attempting to get the results of?