Departments
Updated:
13 Feb 2025
Department_Get
Description: Retrieves departments from Tekla PowerFab.
Request:
<FabSuiteXMLRequest>
<ConnectionGUID>your_connection_guid</ConnectionGUID>
<Department_Get/>
</FabSuiteXMLRequest>
Response:
<FabSuiteXMLResponse>
<Department_Get>
<Successful>true</Successful>
<Department>
<DepartmentID>123</DepartmentID>
<DepartmentName>Department 1</DepartmentName>
</Department>
<Department>
<DepartmentID>456</DepartmentID>
<DepartmentName>Department 2</DepartmentName>
</Department>
</Department_Get>
</FabSuiteXMLResponse>
Code Example:
// Not available in the provided code examples.
Notes:
- You can use filters to limit the departments returned.
Department_Upsert
Description: Inserts or updates one or more departments in Tekla PowerFab.
Request:
<FabSuiteXMLRequest>
<ConnectionGUID>your_connection_guid</ConnectionGUID>
<Department_Upsert>
<Department>
<DepartmentID>123</DepartmentID>
<DepartmentName>Department 1</DepartmentName>
</Department>
<Department>
<DepartmentID>456</DepartmentID>
<DepartmentName>Department 2</DepartmentName>
</Department>
</Department_Upsert>
</FabSuiteXMLRequest>
Response:
<FabSuiteXMLResponse>
<Department_Upsert>
<Successful>true</Successful>
</Department_Upsert>
</FabSuiteXMLResponse>
Code Example:
// Not available in the provided code examples.
Notes:
- The
DepartmentIDandDepartmentNameelements are required for each department.
Department_Delete
Description: Deletes one or more departments from Tekla PowerFab.
Request:
<FabSuiteXMLRequest>
<ConnectionGUID>your_connection_guid</ConnectionGUID>
<Department_Delete>
<DepartmentID>123</DepartmentID>
<DepartmentID>456</DepartmentID>
</Department_Delete>
</FabSuiteXMLRequest>
Response:
<FabSuiteXMLResponse>
<Department_Delete>
<Successful>true</Successful>
</Department_Delete>
</FabSuiteXMLResponse>
Code Example:
// Not available in the provided code examples.
Notes:
- At least one
DepartmentIDelement is required.
End of Section: Departments