Developer Q&A
Fetch Document
I am uploading document while creating WO requests.When I am fetching open requests I am not getting uploaded document along with the WO details.
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>500</int:Count>
<int:FirstResultIndex>0</int:FirstResultIndex>
<int:Criteria>
<int:Conditions>
<int:ConditionExpression>
<int:PropertyName>MainAsset.Id</int:PropertyName>
<int:Operator>Equal</int:Operator>
<int:Values>
<int:anyType xsi:type="xsd:string">1046956</int:anyType>
</int:Values>
</int:ConditionExpression>
<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>50</int:Count>
<int:FirstResultIndex>0</int:FirstResultIndex>
<int:Criteria>
<int:Conditions>
<int:ConditionExpression>
<int:PropertyName>MainAsset.Id</int:PropertyName>
<int:Operator>Equal</int:Operator>
<int:Values>
<int:anyType xsi:type="xsd:string">1046956</int:anyType>
</int:Values>
</int:ConditionExpression>
<int:ConditionExpression>
<int:PropertyName>DtCreated</int:PropertyName>
<int:Operator>Like</int:Operator>
<int:Values>
<int:anyType xsi:type="xsd:string">2020-08-26%</int:anyType>
</int:Values>
</int:ConditionExpression>
</int:Conditions>
</int:Criteria>
<int:Distinct>true</int:Distinct>
</int:queryExpression>
</int:RetrieveMultiple>
</soap:Body>
</soap:Envelope>