SOAP WebService – getSavedSearch

SOAP Action: getSavedSearch

Scenario: Get all transaction searches created.

Request

<soapenv:Envelope
    xmlns:xsd='http://www.w3.org/2001/XMLSchema'
    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
    xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'
    xmlns:platformCore='urn:core_2021_2.platform.webservices.netsuite.com'
    xmlns:platformMsgs='urn:messages_2021_2.platform.webservices.netsuite.com'>
    <soapenv:Header>
        <tokenPassport xsi:type='platformCore:TokenPassport'>
            <account xsi:type='xsd:string'>TSTDRV2779698</account>
            <consumerKey xsi:type='xsd:string'>5198bade507f51559dc2d31e621c96f1a75075abb897bd34d528550751d9a76e</consumerKey>
            <token xsi:type='xsd:string'>e6431e683e4f996118574e373291f794904422ffdd2f20c4caeb931ed9d4a8ea</token>
            <nonce xsi:type='xsd:string'>MTY5MDUyNzU1MQ</nonce>
            <timestamp xsi:type='xsd:long'>1690527551</timestamp>
            <signature algorithm='HMAC_SHA256' xsi:type='platformCore:TokenPassportSignature'>GZWbqS757YeQhNyd1rgdc1AKbFC4/24bLr1a0+msqPI=</signature>
        </tokenPassport>
    </soapenv:Header>
    <soapenv:Body>
        <getSavedSearch xsi:type='platformMsgs:GetSavedSearchRequest'>
            <record searchType='transaction' xsi:type='platformCore:GetSavedSearchRecord'/>
        </getSavedSearch>
    </soapenv:Body>
</soapenv:Envelope>

Response

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Header>
        <platformMsgs:documentInfo
            xmlns:platformMsgs="urn:messages_2021_2.platform.webservices.netsuite.com">
            <platformMsgs:nsId>WEBSERVICES_TSTDRV2779698_07282023168945314312696855_a07c299</platformMsgs:nsId>
        </platformMsgs:documentInfo>
    </soapenv:Header>
    <soapenv:Body>
        <getSavedSearchResponse
            xmlns="">
            <platformCore:getSavedSearchResult
                xmlns:platformCore="urn:core_2021_2.platform.webservices.netsuite.com">
                <platformCore:status isSuccess="true"/>
                <platformCore:totalRecords>2</platformCore:totalRecords>
                <platformCore:recordRefList>
                    <platformCore:recordRef scriptId="customsearch5" internalId="5" xsi:type="platformCore:CustomizationRef">
                        <platformCore:name>Custom Transaction Search 2</platformCore:name>
                    </platformCore:recordRef>
                    <platformCore:recordRef scriptId="customsearch6" internalId="6" xsi:type="platformCore:CustomizationRef">
                        <platformCore:name>JJ purchase order search</platformCore:name>
                    </platformCore:recordRef>
                </platformCore:recordRefList>
            </platformCore:getSavedSearchResult>
        </getSavedSearchResponse>
    </soapenv:Body>
</soapenv:Envelope>

Leave a comment

Your email address will not be published. Required fields are marked *