--- title: "Call profile (Event action)" slug: "core-call-profile-actor" updated: 2026-04-02T06:43:56Z published: 2026-04-02T06:43:56Z canonical: "docs.lobstersoftware.com/core-call-profile-actor" --- > ## 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. # Call profile (Event action) *See also:* [Export](/v1/docs/en/core-export-actor) (event action), [Profile call](/v1/docs/en/core-call-profile-content-builder) (resolver), [Call profile](/v1/docs/en/frebehav-call-profile) (behavior in forms), > [!NOTE] > Event action – Abstract > > **Purpose:** This calls a profile with the data of the current *reference object*. This is done immediately and basically synchronously (in contrast to the export). An XML structure is expected as a return value only if an entity is present as a *reference object* and is interpreted as an update for the entity. For other reference objects the profile call is processed synchronously, but without considering a return value. > > > [!TIP] > > Tooltip > > > > - **Usage:** The object to be exported must exist as a *reference object*. During export, the server XML of this object is passed as input value to the profile identified by 'Profile name'. Optionally, value assignments for MSG_CALL variables are also supported. The 'Fail on profile error?' option controls the behavior in case of error. > > - **Parameter:** > > - Profile name (for the profile to be called). > > - The 'Fail on profile error' option: Defines whether the transaction is cancelled with *rollback* in the event of an error during the profile call. > > - Variables (optional): Value assignments for MSG_CALL variables to be transferred to the profile. > > - **Output:** Transfer the *reference object* as server XML to a profile. Update the *reference object* with the return value of the profile if it is an entity. > > - **NOTE:** The *return value* to update an entity is typically provided via a response path that uses the [CronPassBackDataResponseUTF8 (Responder)](/v1/docs/en/de-lobster-scm-dw-util-cron-pass-back-data-response-utf-8). ![images/download/attachments/201679962/image2021-6-16_9-33-35-version-1-modificationdate-1748274981106-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-6-16_9-33-35-version-1-modificationdate-1748274981106-api-v2.png) The event action [Call profile (Event action)](/v1/docs/en/core-call-profile-actor) calls a profile with the data of the current *reference object*. In contrast to a profile call via [Export](/v1/docs/en/core-export-actor), the call takes place immediately and generally synchronously, so that event handling is interrupted until the profile has been processed. During the profile call, the data of the current *reference object* is passed as input data (XML). The further process depends on whether the *reference object* is an entity or not, i.e. a type of data object managed on the server side: | Reference object | Effect | | --- | --- | | **Reference object is an entity** | If the *reference object* is an entity – i.e. an instance of a specific entity type defined on the server side – **Lobster Data Platform/Orchestration** expects an XML structure as the *return value* of the profile, which can be merged with the data structure of the *reference object* similar to the *object structure* during an [Import](/v1/docs/en/orchestration-integration-import), in order to update its volatile data status. - As with the [Import](/v1/docs/en/orchestration-integration-import), [Orchestration templates](/v1/docs/en/orchestration-integration-templates) are helpful for creating source and target structures if the profile should change the data of the entity passed as a *reference object* via *mapping* (phase 3/4). - If the XML structure specifies an ID (`id`) for the entity in the *return value*, it must refer to the *reference object*, otherwise an error (with *rollback*) occurs when merging into **Lobster Data Platform/Orchestration**. - The *return value* can also refer to [Control attributes](/v1/docs/en/orchestration-integration-control), similar to [Import](/v1/docs/en/orchestration-integration-import), in order to regulate details for updating the *reference object*. - The *return value* for **Lobster Data Platform/Orchestration** is typically provided via a response path with the [CronPassBackDataResponseUTF8 (Responder)](/v1/docs/en/de-lobster-scm-dw-util-cron-pass-back-data-response-utf-8) (see [Responders (for Orchestration)](/v1/docs/en/orchestration-integration-responder)). - In contrast to [Import](/v1/docs/en/orchestration-integration-import), the *reference object* updated via the *return value* of a profile call is not automatically saved. Provided that the call is based on a suitable interactive context, the user can therefore decide whether the changed *reference object* is saved or not. Alternatively, the event action [Save changes later](/v1/docs/en/core-merge-later-once-actor) can be used in the context of event handling to flag the *reference object* for saving when the transaction is completed. The latter is essential if changes are to be saved for a *reference object* included in a transaction that refers to a different *reference object* (or even none at all), e.g. via [Execute with](/v1/docs/en/core-with-actor) in connection with [Input object (type safe)](/v1/docs/en/core-root-entity-resolver). **NOTE:** If the called profile returns no or an unsuitable *return value*, for example, because no corresponding response path is configured or active, or the provided content uses e.g. JSON format instead of the expected XML format, then an error occurs that causes a rollback of the transaction in **Lobster Data Platform/Orchestration**, while the profile job files as processed *without errors*. If a profile is executed only with the data of an entity without expecting a *return value* relevant to the content, a response path must always be created, which – e.g. via [CronPassBackDataResponseUTF8 (Responder)](/v1/docs/en/de-lobster-scm-dw-util-cron-pass-back-data-response-utf-8) – returns a data structure that can be processed via merging but does not cause any changes. By selecting the 'as received' option for **Content** in the **Content settings** tab, for example, it is easy to ensure that the *return value* reflects the input data unchanged, while other response paths can refer to deviating **Content** from phases 3-5: ![images/download/attachments/201679962/image2021-6-16_9-43-32-version-1-modificationdate-1748274981093-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-6-16_9-43-32-version-1-modificationdate-1748274981093-api-v2.png) | | **Reference object is not an entity** | If the *reference object* is not an entity, but rather, for example, a simple value, a list (see example) or a client object, a server XML of the corresponding data structure is also generated and transferred to the profile. Example (server XML for a list of strings): ```xml P1020 X4896 ... ``` - The sample file could be used, for example, to pass on the list of reference codes generated within an event handling in **Lobster Data Platform/Orchestration** (e.g. via the [Collect values](/v1/docs/en/core-collect-resolver) resolver) to a profile that queries data from other data sources based on the transferred key values, in order to forward these in a prepared form to a specific target system. **IMPORTANT:** For data objects that are not entities, **Lobster Data Platform/Orchestration** does not provide an update mechanism in connection with a profile call. A *return value* from the profile is therefore neither processed nor expected – in contrast to the call with the data of an entity. However, the profile call is still synchronous, i.e. for the runtime of the profile, the called event handling in **Lobster Data Platform/Orchestration** is interrupted. Afterwards, it is continued, whereby for the *reference object* itself the state when the profile was triggered remains unchanged, if the profile – e.g. via [CronPassBackDataResponseUTF8 (Responder)](/v1/docs/en/de-lobster-scm-dw-util-cron-pass-back-data-response-utf-8) – delivers a *return value* to **Lobster Data Platform/Orchestration**. **NOTE:** In the context of a form, the [Call profile](/v1/docs/en/frebehav-call-profile) behavior can alternatively be used to pass any data object to a profile and then process the *return value* of the profile back in the portal. If required, alternative formats for data exchange between **Lobster Data Platform/Orchestration** and the called profile can also be selected there (e.g. JSON instead of XML), where data structures not bound to entity types can often be handled more efficiently. | Assignments to MSG_CALL variables in the profile: Information about the *applicable logon context* (company, role, user) is automatically assigned to the MSG_CALL variables predefined in profiles – as is usual for profile calls from **Lobster Data Platform/Orchestration**. These are automatically filled with values at runtime depending on the session's logon data and, if necessary, taking into account adjustments made by the [Run as](/v1/docs/en/base-run-as-actor) event action, as follows: | **Data object** | **Value** | **Variable name** *(***Lobster Data Platform/Integration**`)` | **Data type** *(***Lobster Data Platform/Integration***)* | | --- | --- | --- | --- | | [Company of session](/v1/docs/en/base-session-company-account-value) | ID (`id`) of the company account | `MSG_CALL_SCM_Company_id` | `BigInteger` | | Company account data object as XML (text) | `MSG_CALL_SCM_Company_xml` | `String` | | [Role of session](/v1/docs/en/base-session-role-value) | ID (`id`) of the role | `MSG_CALL_SCM_Role_id` | `BigInteger` | | [User of session](/v1/docs/en/base-session-user-value) | ID (`id`) of the user account | `MSG_CALL_SCM_User_id` | `BigInteger` | | Username (`username`) | `MSG_CALL_SCM_User_username` | `String` | | User account data object as XML (Text) | `MSG_CALL_SCM_User_xml` | `String` | Optionally, value assignments can be configured for further **Variables** to pass additional data to the called profile. ## Configuration ![images/download/attachments/201679962/image2021-6-16_9-33-47-version-1-modificationdate-1748274981104-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-6-16_9-33-47-version-1-modificationdate-1748274981104-api-v2.png) The **Profile name** parameter identifies the profile to be called up. Existing profile names are suggested in a drop-down list via 'auto-completion' to match the entry in the text field. **NOTE:** Unlike the configuration of behaviors such as [Call profile](/v1/docs/en/frebehav-call-profile) in the [Form designer](/v1/docs/en/fre), access to profiles in event handlers is not constrained by [Profile securities](/v1/docs/en/core-profile-security). The option **Fail on profile error?** determines whether an error during the processing of the profile call is also evaluated as an error (incl. *rollback*) within the event handling in **Lobster Data Platform/Orchestration**. - The option is deselected by default, so in case of an error during profile execution, event handling continues with an unchanged *reference object*. - If the option is selected, errors will affect the transaction in **Lobster Data Platform/Orchestration**. An abort incl. *rollback* of the transaction can therefore be specifically triggered via the **Lobster Data Platform/Integration** function `throw exception`. The **Variables** section offers a [Repeatable element](/v1/docs/en/fre-duplicate-element-container-vo) in which value assignments for variables can be defined via the ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/add.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/add(20).svg) and ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/forbidden.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/forbidden(17).svg) symbols. - The assignments for these variables apply only to the context of the profile call. - A variable must be defined in the profile that uses the prefix `MSG_CALL_` before the entry for the **Variable name**. - The value resolvers configured for the **Value** parameter are resolved at runtime at the same time the [Export](/v1/docs/en/core-export-actor) event action is executed. However, the note below must be observed when a data object is assigned as the value to the variable. ![images/download/attachments/201679962/image2021-6-11_17-37-40-version-1-modificationdate-1748274981108-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-6-11_17-37-40-version-1-modificationdate-1748274981108-api-v2.png) As the example of the second **Variable name** `attachment` in the image above illustrates, the option **Send as file** may also appear depending on the type of the return value of the value resolver. - If the **Send as file** option is checked, then the return value of the resolver is not assigned directly to the variable, but a path specification to a temporary file into which the corresponding content is written when the profile is called. After the profile call, such temporary files are automatically deleted again. ## Example Within an input form for orders, individual prices per item are 'obtained' from a commercial system upon request, provided that the respective item fulfills a number of criteria (EAN number filled in, another price entered, etc.). It should be possible to request prices for each item by specifying an individual target currency. Further details for looking up the prices should not play a role in this example. Crucially, the request must be handled via a profile call, which must be executed selectively for each qualified order item. The prices obtained should appear immediately in the volatile data object of the order without having to save the order as a whole. Configuration: | An event handler that uses a 'Get list price' [Custom action event](/v1/docs/en/core-custom-action-events) event as a **Triggering event** is configured as shown on the right: - A [Check type](/v1/docs/en/core-check-type-rule) serves as a **Validating rule**, which ensures that price requests are only executed in the context of [Orders](/v1/docs/en/ord-order). - As an **Action on passed rule**, a [For each loop](/v1/docs/en/core-for-each-entity-actor) is configured that examines with a [Rule list resolver](/v1/docs/en/core-list-rule-resolver) for [Direct line items](/v1/docs/en/base-get-line-items-resolver) of the 'Default' type, which returns only order items qualified for a price demand as a list. - The event actions within the loop are therefore only executed if qualified order items were found. The *reference object* within the loop is exactly one order item. - With the [Call profile (Event action)](/v1/docs/en/core-call-profile-actor), the data of one item at a time is therefore passed as XML to the profile identified by **Profile name**. In addition, the identifier for the desired 'target currency' is specified by the **Variable name** `targetCurrency`. This is done statically in the example by assigning the text `CHF` as a **Value**. Of course, a selection could also be taken from the header data of the order instead. **NOTE:** Since an item is always an entity (here the `OrderLineItem` type), the profile can cause an update of the item's properties via the *return value*. Whether the position or the surrounding order has already been saved is irrelevant. The *return value* is simply merged with the data of the adjacent *reference object*. | ![images/download/attachments/201679962/image2021-6-16_9-46-3-version-1-modificationdate-1748274981087-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-6-16_9-46-3-version-1-modificationdate-1748274981087-api-v2.png) | | --- | --- |