How to Know the Inventory Number Internal ID/Inventory Number of a lot/serialized item using SOAP Web Services.

A User would like to know the Inventory Number Internal ID/Inventory Number of a lot/serialized item using SOAP Web Services.

The user could create a search via UI and call it on the SOAP request or use the search on the SOAP request with the criteria/filters to get the results.

You could see below an example on how to do it:

Using first method which is creating the search via UI the body would simply look like this:

    <soapenv:Body>
        <search xsi:type='platformMsgs:SearchRequest'>
            <searchRecord xsi:type='listAcct:ItemSearchAdvanced' savedSearchId='4123'/>
        </search>
    </soapenv:Body>

Note: The Criteria of the Saved Search is: Type is Assembly

The Filter/Columns are: Name, Display Name, is Lot Number Item, Is Serialized Item, Inventory Number: Number, Inventory Number: Internal ID.

Using the second method, the body would look like this:

<soapenv:Body>
        <search xsi:type='platformMsgs:SearchRequest'>
            <searchRecord xsi:type='listAcct:ItemSearchAdvanced'>
                <criteria xsi:type='listAcct:ItemSearch'>
                    <basic xsi:type='platformCommon:ItemSearchBasic'>
                        <type operator='anyOf' xsi:type='platformCore:SearchEnumMultiSelectField'>
                            <searchValue xsi:type='xsd:string'>Assembly</searchValue>
                        </type>
                    </basic>
                </criteria>
                <columns xsi:type='listAcct:ItemSearchRow'>
                    <basic xsi:type='platformCommon:ItemSearchRowBasic'>
                        <displayName xsi:type='platformCore:SearchColumnStringField'>
                            <customLabel xsi:type='xsd:string'>Display Name</customLabel>
                        </displayName>
                        <isLotItem xsi:type='platformCore:SearchColumnBooleanField'>
                            <customLabel xsi:type='xsd:string'>Is Lot Item</customLabel>
                        </isLotItem>
                        <isSerialItem xsi:type='platformCore:SearchColumnBooleanField'>
                            <customLabel xsi:type='xsd:string'>Is Serialized</customLabel>
                        </isSerialItem>
                    </basic>
                    <inventoryNumberJoin xsi:type='platformCommon:InventoryNumberSearchRowBasic'>
                        <internalId xsi:type='platformCore:SearchColumnSelectField'>
                            <customLabel xsi:type='xsd:string'>Internal ID</customLabel>
                        </internalId>
                        <inventoryNumber xsi:type='platformCore:SearchColumnStringField'>
                            <customLabel xsi:type='xsd:string'>Inventory Number</customLabel>
                        </inventoryNumber>
                    </inventoryNumberJoin>
                </columns>
            </searchRecord>
        </search>
    </soapenv:Body>

Leave a comment

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