☁️
Flow IFS Cloud Development Guidelines
  • Flow IFS Cloud Development Guidelines
  • 👶Getting started
    • OData Basics
    • IFS Cloud
    • Terminology
    • Useful Applications
    • IFS documentation
      • IFS API Explorer
      • Entity details
    • Setting up the OData connector
      • Configure connection between Flow Server and IFS Cloud
      • Selecting which configurations are visible in Flow Server
  • 👩‍💻Flow Development with OData
    • Architecture
    • Flow development and distribution strategy
    • Implementation
      • Operations in OData machine steps
      • Missing operations
      • Translations
      • Iteration
      • Join data sets
      • Misc Tips and trix
      • Document / Media Library Management
      • Response status handling
        • Errors from IFS
      • Operation specific notes
        • Set input parameters using flow script
        • Update
        • 🛠️WIP - Create
        • Read
    • Configuration
      • Authentication models
        • Setup Client credential flow
        • 🛠️Setup Password credentials flow
        • 🛠️Setup Authorization code flow
        • 🛠️Setup OpenID flow
        • Obtaining Authentication related URLs from IFS Cloud
      • Projection administration
        • Administrating new projections
        • Administrating updated projections
      • Configuring projections in IFS
        • Custom Entities
        • Custom Projections
        • 🛠️WIP - Query Designer
        • Quick Reports
    • Trigger Flows from IFS Cloud
      • Trigger User Flows via External Navigation Links
      • Trigger Machine Flows via BPA using commands
      • 🛠️Trigger Flow via Event Action
    • Debugging and Testing
      • Aurena debugging
        • Inspect in web browser
        • IFS debug console
      • OData Connector Log
  • 🪄Advanced
    • Custom Request
    • C# usage in the OData connector
      • Different methods
      • Building request
      • 🛠️WIP - Code examples
Powered by GitBook
On this page
  • Reference Entities in Read-operation
  • Reference entity not included in Entity?
  • Join Entity Sets in flow

Was this helpful?

  1. Flow Development with OData
  2. Implementation

Join data sets

PreviousIterationNextMisc Tips and trix

Last updated 1 year ago

Was this helpful?

Reference Entities in Read-operation

Initially look what are predefined reference entities linked to main entity.

Reference entity not included in Entity?

  • Do multiple requests and join with Flow script (shown below) or

Join Entity Sets in flow

In Flow 6.15 a Flowscript Join function was introduced. Use this instead of the loop in the code example.

If several requests are necessary to get the data for the dataset, Flow script can be used to to join data into single Flow table.

Example script to join previously read Customer and CustomerAddress entitysets.

The script works on any OData machine step output data structure, you just need to replace the key values in the script.

customers = outCustomer.Results;
let addresses = outRefCustomerAddresses.Results;
let customerRecEmpty = Empty(outCustomer.Results).FirstOrEmpty();
let adddressTabEmpty = Empty(addresses);
let outTab = empty(*[customer: customerRecEmpty, addresses: adddressTabEmpty]);

for customer in customers {
 let addressesTempTab = addresses where CustomerId = customer.CustomerId;
 set outTab = outTab & [customer: customer, addresses: addressesTempTab];
 set addresses = addresses except where CustomerId = customer.CustomerId;  
 }

Is it possible to add reference to Entity using feature or

create a as a new Projection in IFS and if it is possible to add the needed reference entities or

explore possibilities provided by or to build new custom projections.

👩‍💻
IFS Entity Configuration
Custom Entity
Quick Reports
Query Builder
Get UnitCode details of entity ParrCatalog