Get Entity Attribute Values

Get Entity Attribute Values

Kuika's Get Entity Attribute Values action is used to retrieve all attribute values of a specific entity (entity) in bulk. With this action, the contents of all data fields associated with an entity can be obtained in a single operation and displayed in forms, detail screens, or reports.

This action is currently available in beta version and is still under development. It is recommended to test it carefully before using it in a production environment.

This action should be preferred over Get Entity Attribute Value when the values of multiple attributes are needed at the same time.

Technical Features

  • Get Bulk Attribute Values (EAV Panel): Get Entity Attribute Values action works with the following required parameter:
    • EntityId (Guid - Required): The unique system ID of the entity whose values will be retrieved. It can be retrieved from different sources via the Symbol Picker.
  • Data Source Compatibility: EntityId can be retrieved from the following sources:
    • Form Component (e.g. ID selected from a Select Box)
    • Fixed (fixed GUID value)
    • Action Result (previous action result)
    • Current (current screen data)
  • Web & Mobile Support: The Get Entity Attribute Values action works in both web and mobile applications.
Get Entity Attribute Values Action Application Steps

1. Entity Selection in the UI

  • An area (e.g. a Select Box element) is added to allow the user to select an entity.

2. Action Definition

  • Defined as follows to run when a button is clicked or the screen loads:
    • + ADD ACTION > OnClick / OnLoad > EAV > Entity Attribute Value > Get Entity Attribute Values
  • Parameters are set:
  • EntityId: Symbol Picker > Select Box, Component, or Action Result

3. Using the Result

  • The action output is a JSON object:
{‘attributeId1’: ‘value1’,“attributeId2”: ‘value2’,...}
  • These values:
    • Can be loaded into a dynamic form
    • Can be distributed to elements with Set Value actions
    • Can be printed to a table or detail screen
Usage Scenario: Loading Customer Information

On a customer details screen, you want to dynamically display all custom fields (e.g., ‘Membership Start Date,’ ‘Contact Preference,’ ‘Segment’) for that customer.

  1. When a customer (entity) is selected, Get Entity Attribute Values runs.
  2. The result is loaded into the dynamic form element.
  3. The user sees all the information on a single screen and can edit it as needed.

Get Entity Attribute Values Action Advanced Customisations
  • Use with Dynamic Forms: This action usually works in conjunction with Get Entity Attributes. First, the attribute structure is retrieved, then the values.
  • Caching/Storage: The retrieved values are stored in an Object Variable with Set Value and can be reused within the application.
  • Conditional Display: The visibility or access of certain components can be controlled based on the retrieved values (If).

Technical Risks

  • Missing EntityId: The action does not work if the parameter is empty or incorrect.
  • Empty Result: If the entity does not yet contain an attribute value, the returned JSON may be empty.
  • Data Type Mismatch: Ensure that the form elements of the retrieved values are compatible (e.g., linking a boolean value to a checkbox).
  • Performance: The loading time of this action should be carefully tested for entities with a large number of attributes.

The Get Entity Attribute Values action is an effective tool in the Kuika platform for quickly and collectively retrieving entity-based data. It offers ideal solutions, especially in dynamic form scenarios or data detail screens where all attribute values need to be managed together.

Other Related Content

No items found.

Glossary

No items found.

Alt Başlıklar