HomeGuidesAPI ReferenceChangelogDeveloper Q&A
HomeGuidesAPI ReferenceAnnouncementsLog In
Developer Q&A

Developer Q&A

Ask a Question
Back to all

Create work order by just using taskId.

Hi,
I am using the following payload to get task list that matches the string.I am getting the response which returns just the taskId, but how can I create the workorder using just the taskId. As far as I know we need assetId plus taskId to create a WO request.
Is there any other payload that fetches the AssetId in with the response.

<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:ImposeConcurrencyIdfalse</int:ImposeConcurrencyId>
int:UpdateLastModifiedfalse</int:UpdateLastModified>
int:CanDeleteMissingEntityfalse</int:CanDeleteMissingEntity>
int:LockOnDataRetrievalDefault</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:EntityTypeTask</int:EntityType>
<int:PropertySet xsi:type="int:PropertySet">
int:Properties
int:string</int:string>
int:stringSpecialty.
</int:string>
</int:Properties>
</int:PropertySet>
int:Orders
int:OrderExpression
int:PropertyNameId</int:PropertyName>
int:OrderTypeAscending</int:OrderType>
</int:OrderExpression>
</int:Orders>
int:Count10</int:Count>
int:FirstResultIndex0</int:FirstResultIndex>
int:Criteria
int:Conditions
int:ConditionExpression
int:PropertyNameDisplayAs</int:PropertyName>
int:OperatorLike</int:Operator>
int:Values
<int:anyType xsi:type="xsd:string">%Spill%</int:anyType>
</int:Values>
</int:ConditionExpression>
</int:Conditions>
int:FilterOperatorAnd</int:FilterOperator>
int:Filters
int:FilterExpression
int:Conditions
int:ConditionExpression
int:PropertyNameIsRemoved</int:PropertyName>
int:OperatorEqual</int:Operator>
int:Values
<int:anyType xsi:type="xsd:boolean">false</int:anyType>
</int:Values>
</int:ConditionExpression>
</int:Conditions>
</int:FilterExpression>
</int:Filters>
</int:Criteria>
int:Distincttrue</int:Distinct>
</int:queryExpression>
</int:RetrieveMultiple>
</soap:Body>
</soap:Envelope>