Praman — AI-First SAP UI5 Test Automation Platform - v1.0.1
    Preparing search index...

    Function queryEntities

    • Queries an entity set via HTTP GET with OData system query options.

      Type Parameters

      • TData = unknown

      Parameters

      • page: ODataHttpPage

        Playwright Page with request API.

      • serviceUrl: string

        OData service root URL.

      • entitySet: string

        Name of the entity set to query.

      • Optionaloptions: ODataQueryOptions

        Query options including $filter, $select, $expand, $orderby, $top, $skip.

      Returns Promise<ODataHttpResult<readonly TData[]>>

      Array of entities with HTTP status.

      const result = await queryEntities(page, '/sap/opu/odata/sap/SVC/', 'Products', {
      filter: "Price gt 10",
      select: "Name,Price",
      top: 20,
      });