--- title: "Get service items" slug: "frebehav-getprovideritems" updated: 2026-05-04T08:20:17Z published: 2026-05-04T08:20:17Z canonical: "docs.lobstersoftware.com/frebehav-getprovideritems" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Get service items *See also:* [Contained in service items](/v1/docs/en/frebehav-is-in-provideritems), [Data service update](/v1/docs/en/fretrigger-dataprovider-update) > [!NOTE] > The **Behavior type** [Get service items](/v1/docs/en/frebehav-getprovideritems) returns the current data service records as a list for an item in the group of [List elements](/v1/docs/en/fre-list-elements). ![images/download/attachments/189431982/image-2024-9-30_12-5-20-version-1-modificationdate-1727690719273-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-9-30_12-5-20-version-1-modificationdate-1727690719273-api-v2.png) - If no element is linked, the service entries of the *executing element* are evaluated. - If an element is linked, the service entries of the *linked element* are evaluated. If the respective element does not belong to the group of [List elements](/v1/docs/en/fre-list-elements), no actions are executed. If the respective element belongs to the group of [List elements](/v1/docs/en/fre-list-elements), but does not currently contain any service entries, an empty array is passed to the **Actions on "true"**. > [!WARNING] > **IMPORTANT:** The **Behavior type** only returns the entries currently loaded locally into the element by the data service. If the service configuration settings include *paging* ("Max. results" per loaded page), search restrictions, etc., these may affect the return value. Stable results can only be expected if a data service is used that does not use *paging* but always provides all configured entries "statically" (e.g. based on a dynamic enumeration). ## Example A sales employee is required to nominate one of his customers every month as a "favorite customer" via a portal based on subjective criteria. On the basis of turnover criteria, which will not be discussed in detail here, the system makes a certain pre-selection and offers a maximum of 10 candidates to choose from. Against this background, when a selection is made, it should also be recorded from among how many qualified candidates a "favorite customer" was selected. Runtime example: ![images/download/attachments/189431982/image2020-5-22_13-25-55-version-1-modificationdate-1727690471876-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2020-5-22_13-25-55-version-1-modificationdate-1727690471876-api-v2.png) Configuration: | ![images/download/attachments/189431982/image-2024-10-23_16-15-22-version-1-modificationdate-1729692921538-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-10-23_16-15-22-version-1-modificationdate-1729692921538-api-v2.png) | The pre-selection in the system for the most qualified candidates is defined by the service configuration for the "Candidates" [Combobox](/v1/docs/en/fre-combo-box-vo). This selects a maximum of 10 [Companies/Clients](/v1/docs/en/base-company-account) on the basis of criteria not described in detail here, which are offered for selection in the portal via the "Options" display type. - A behavior is configured for this element that reacts to the **Triggering event** [Changed](/v1/docs/en/fretrigger-changed) (with all **Change types**). --- - The **Behavior type** [Get service items](/v1/docs/en/frebehav-getprovideritems) does not use an element link, since the executing element ("Candidates") is evaluated. --- - Under the **Actions on "true"**, a [Set value](/v1/docs/en/freaction-set-value) action is executed, which evaluates a calculation expression as a value, which links the following information and returns it in a text field ("Vote: ...") provided for this purpose: - The function [get (Read value from data field)](/v1/docs/en/calc-function-get) obtains the currently changed value from the [Combobox](/v1/docs/en/fre-combo-box-vo). This was available as `$input` until the behavior type was executed, but was then overwritten with a list of entries ("Candidates"). - The [ifNotEmpty](/v1/docs/en/calc-function-if-not-empty) function ensures that the following information on the number of candidates is only provided if a selection was actually made. - The access to the field {`length`} refers to the return value (`$input`) of the behavior type, so it returns the number of listed candidates. | | --- | --- |