PlantScanner - BEAS Service Layer icon

PlantScanner - BEAS Service Layer

Interact with BEAS Service Layer API

Actions32

Work Order → Get All

AI-generated

Overview

This node interacts with the BEAS Service Layer API to retrieve multiple Work Order records based on specified filters and query options. It supports OData query parameters such as filtering, sorting, pagination (skip and top), field selection, and entity expansion. This is useful for scenarios where users need to fetch a list of work orders with specific criteria, for example, retrieving all open work orders created after a certain date, or sorting work orders by creation date.

Use Case Examples

  1. Fetch all open work orders created after 2024-03-20.
  2. Retrieve the top 10 work orders sorted by creation date descending.
  3. Get work orders with specific fields like WorkOrderID, Description, and Status only.

Properties

Name Meaning
Filters OData filter string to filter the work orders, e.g., Status eq 'Open' or CreationDate ge '2024-03-20'.
Sort OData sort string to order the results, e.g., CreationDate desc or Status asc.
Skip Number of records to skip for pagination.
Top Maximum number of records to return.
Select Comma-separated list of fields to select in the response. Leave empty to get all fields.
Expand Comma-separated list of related entities to expand in the response. Leave empty for no expansion.

Output

JSON

  • json - The JSON response containing the list of work orders matching the query parameters.

Dependencies

  • BEAS Service Layer API
  • API authentication via service password to obtain session cookie

Troubleshooting

  • Ensure the service password credential is correct to successfully obtain a session cookie; failure results in an error 'Failed to get session cookie'.
  • Invalid OData filter, sort, or JSON parameters may cause API errors; verify syntax and correctness.
  • If the node throws 'Operation getAll not supported', check that the resource and operation parameters are correctly set.

Discussion