Developer Q&A
Get location details based on string
I am unable to get the location using search string:
Response:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
</soap:Body>
</soap:Envelope>
I am firing the following payload:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:int="http://corrigo.com/integration/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<int:CorrigoNetOptions>
<int:ImposeConcurrencyId>false</int:ImposeConcurrencyId>
<int:UpdateLastModified>false</int:UpdateLastModified>
<int:CanDeleteMissingEntity>false</int:CanDeleteMissingEntity>
<int:LockOnDataRetrieval>Default</int:LockOnDataRetrieval>
</int:CorrigoNetOptions>
</soap:Header>
<soap:Body>
<int:RetrieveMultiple>
<int:queryExpression xsi:type="int:QueryExpression" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<int:EntityType>WorkOrder</int:EntityType>
<int:PropertySet xsi:type="int:AllProperties"/>
<int:Orders>
<int:OrderExpression>
<int:PropertyName>id</int:PropertyName>
<int:OrderType>Ascending</int:OrderType>
</int:OrderExpression>
</int:Orders>
<int:Count>10</int:Count>
<int:FirstResultIndex>0</int:FirstResultIndex>
<int:Criteria>
<int:Conditions>
<int:ConditionExpression>
<int:PropertyName>ShortLocation</int:PropertyName>
<int:Operator>Equal</int:Operator>
<int:Values>
<int:anyType xsi:type="xsd:string">%Singapore%</int:anyType>
</int:Values>
</int:ConditionExpression>
</int:Conditions>
</int:Criteria>
<int:Distinct>true</int:Distinct>
</int:queryExpression>
</int:RetrieveMultiple>
</soap:Body>
</soap:Envelope>