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

Developer Q&A

Ask a Question
Back to all

Create SR with retail price for item number

Corrigo has requested that AppTree modify the create SR form we have developed to include the item number and retail price. The following sample work order create with custom fields was provided to us by Corrigo. This indicated that we need to use custom field descriptor ID instead of the custom field name. We are trying to identify the descriptor ID for the custom field "!L_Item #!M_Retail Price" but do not find it in the list. Please refer to the following url for a list of what we are currently seeing. https://www.dropbox.com/s/0xkegb50sole3oe/corrigo_customfieldslist.jpg?dl=0

Please advise how to find the descriptor ID for this custom field, and provide an updated sample work order create request that includes this custom field.

Sample work order create request with custom fields:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:int="http://corrigo.com/integration/">
soap:Header
int:CorrigoNetOptions
int:ImposeConcurrencyIdfalse</int:ImposeConcurrencyId>
int:UpdateLastModifiedtrue</int:UpdateLastModified>
int:CanDeleteMissingEntityfalse</int:CanDeleteMissingEntity>
int:LockOnDataRetrievalDefault</int:LockOnDataRetrieval>
</int:CorrigoNetOptions>
</soap:Header>
soap:Body
int:Execute<int:commandRequest xsi:type="int:WoCreateCommand" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

int:WorkOrder
int:TypeCategoryRequest</int:TypeCategory>
int:SubType
int:Id259</int:Id>
</int:SubType>
int:Customer
int:Id27</int:Id>
</int:Customer>
int:ContactNameBL Testing Again 2/18</int:ContactName>
int:ContactAddress
int:AddrTypeIdContact</int:AddrTypeId>
int:Address214-555-1234</int:Address>
</int:ContactAddress>
int:Items
int:WoItem
int:Asset int:Id4182</int:Id>
</int:Asset>
int:Task
int:Id14819</int:Id>
</int:Task>
</int:WoItem>
</int:Items>
int:CustomFields
int:CustomField2
int:Descriptor
int:Id1</int:Id>
<!--
int:ActorTypeIdWO</int:ActorTypeId>

                 <int:Length>256</int:Length>
                 <int:Type>String</int:Type>
                 <int:Name>External WO Number</int:Name>   
                 -->               
              </int:Descriptor>
              <int:ObjectTypeId>WO</int:ObjectTypeId>
              <int:Value>123456</int:Value>
           </int:CustomField2>               
           <int:CustomField2> 
                            
              <int:Descriptor>
              <int:Id>11</int:Id>
                 <int:ActorTypeId>WO</int:ActorTypeId>
                 <int:Length>256</int:Length>
                 <int:Type>String</int:Type>
                 <int:Name>Cost Center</int:Name>                  
              </int:Descriptor>
              <int:ObjectTypeId>WO</int:ObjectTypeId>
              <int:Value>350</int:Value>
           </int:CustomField2>
          
           </int:CustomFields>

</int:WorkOrder>
int:ComputeScheduletrue</int:ComputeSchedule>
</int:commandRequest></int:Execute>
</soap:Body>
</soap:Envelope>