Empower Help

Search:

Display Legacy Contents

IndexBookmarkPrint

Home > Materials > Advanced Topics > Import Export Data > Empower API > Using the API To Retrieve Data > Materials

Materials


Material can be retrieved through the API using the function call



1. GetMaterialsProvidedForJob(jobOurReference As String)

This function takes a single argument of data type String and returns the MaterialsProvidedData if it exists.

As a result the request body should be based on the following

 <soapenv:Body>
      <web:GetMaterialsProvidedForJob>
         <web:jobOurReference>JOB OUR REFERENCE</web:jobOurReference>
      </web:GetMaterialsProvidedForJob>
 </soapenv:Body>

Response XML Format,

<soap:Body>
      <GetMaterialsProvidedForJobResponse xmlns="http://empowersoftware.co.nz/WebService">
         <GetMaterialsProvidedForJobResult>
            <MaterialProvidedData>
               <JobOurReference>JOB OUR REFERENCE</JobOurReference>
               <MaterialName>MATERIAL NAME</MaterialName>
               <MaterialCode>MATERIAL CODE</MaterialCode>
               <MaterialUnitOfMeasure>MATERIAL UNIT OF MEASURE</MaterialUnitOfMeasure>
               <MatQtyProvided>MAT QTY PROVIDED</MatQtyProvided>
               <MatQtyInStock>MAT QTY IN STOCK</MatQtyInStock>
               <BomId>BOM ID</BomId>
            </MaterialProvidedData>
         </GetMaterialsProvidedForJobResult>
      </GetMaterialsProvidedForJobResponse>
   </soap:Body>


The following data types are used

MaterialProvidedData

JobOurReference As String
MaterialName As String
MaterialCode As String
MaterialUnitOfMeasure As String
MatQtyProvided As Double
MatQtyInStock As Double
BomId As Long



 

For more information see

Example Code
WDSL Schema



 

See also

Purchase Orders
Suppliers

 



 



See also