--- title: "Profile in target structure (subprofile)" slug: "phase-3-target-structure-subprofile-target" updated: 2026-10-01T13:56:45Z published: 2026-10-01T13:56:45Z canonical: "docs.lobstersoftware.com/phase-3-target-structure-subprofile-target" --- > ## 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. # Profile in target structure (subprofile) **IMPORTANT:** We generally recommend using subprofiles in the source structure (newer concept). See [Profile in source structure (subprofile)](/v1/docs/en/phase-3-target-structure-subprofile-source). You can use the context menu on a node of the target structure to insert an existing Profile as a subnode in the target structure. ## Requirements for a profile to be added (when using a scheduled input agent) - The Mapping is active (and the profile itself). - The profile uses the Integration Unit `PrepareDataForCallingProfile` in Phase 5. - It has a Response of the "Custom class" type with the `PassBackBinaryDataResponse` class (with the content set to "Output of IU"). **IMPORTANT:** The class must be executed in the last response, otherwise the function call subprofile () (see below) will generate an error. - The options "Enter output channels for each record" and "Incorporate IU" must not be set (see [Extended (Phase 2)](/v1/docs/en/profiles--tab-3-advanced)**)**. ## Requirements for a profile to be added (when not using a scheduled input agent) - The mapping is active (and the profile itself). - The profile uses the Integration Unit `PrepareDataForCallingProfile` or `XMLNoTemplateUnit` or `JsonCreationUnit` in Phase 5. > [!NOTE] > **NOTE:** > > Internally, the following steps are performed to get an analogous behavior to the first case. The profile is cloned, the Integration Unit `PrepareDataForCallingProfile` is set, the parameter `Starting node` is filled with the starting node of the originally set Integration Unit and, if necessary, the response class `PassBackBinaryDataResponse` is appended. After the call, the clone is discarded. ## Adding a profile Let us assume we have a profile named *Contacts* that meets all the requirements above. This profile has the following target structure. **IMPORTANT:** You can only add **one profile per node**! ![images/download/attachments/164333111/1129-version-2-modificationdate-1745391339900-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/1129-version-2-modificationdate-1745391339900-api-v2.png) Please do not forget to specify the starting node of profile *Contacts* in its Integration Unit ①. The (partial) structure starting from this node will be added later. ![images/download/attachments/164333111/1130-version-2-modificationdate-1745391356668-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/1130-version-2-modificationdate-1745391356668-api-v2.png) We now want to add `Contacts` to the profile as a subnode in the following target structure. ![images/download/attachments/164333111/1133-version-2-modificationdate-1745391375617-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/1133-version-2-modificationdate-1745391375617-api-v2.png) The result looks like this. Please pay attention to the automatically set functions. Except for one spot, you normally do not have to touch these functions. ![images/download/attachments/164333111/1132-version-2-modificationdate-1745391388006-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/1132-version-2-modificationdate-1745391388006-api-v2.png) ② Here the function [call subprofile()](/v1/docs/en/basic-call-sub-profile) is called. Parameter `a` specifies the name of the added profile. You can use parameter `b` to start the scheduled input agent of the added profile (if available), otherwise, you have to explicitly specify the input data for the added profile in parameter `c`. ![images/download/attachments/164333111/1131-version-2-modificationdate-1745391403171-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/1131-version-2-modificationdate-1745391403171-api-v2.png) ③ Here the function [extract result data of sub profile(nodename a)](/v1/docs/en/basic-get-profile-call-node-data) is used to link to the node of the added profile (theoretically you could rename the node here). So `Contact_details`-> `Contact_details`. ④ Here the function [extract result data of sub profile(field a)](/docs/en/basic-get-profile-call-field-value) is used to link to the respective fields of the added profile (theoretically you could rename the fields here). So `Landline`-> `Landline`, `Mobile` -> `Mobile` and `Email` -> `Email`. ## Note on mappings with added profiles As shown in [Mapping - Filling a record of the target tree](/docs/en/intro-profiles-phase-3-filling-target-tree), data is filled into the Target tree from top to bottom. Although this also applies to the entire subnode that is added here, all the data within the subnode is instantly available. So you could already access the value of field `Email` in the field `Landline`, to stay in our example. ## Passed variables All variables are passed as `MSG_CALL_` variables (just like in responses of the Message type). A profile is the central configuration unit in the Lobster Data Platform. It receives data, processes it, and forwards it. Configuration is done graphically, with no programming required. The core task of Phase 3. Mapping transfers data from the source structure to the target structure according to defined rules. In the process, fields can be transformed, functions can be called, and values can be calculated. Integration Units: Optional downstream transformations, such as conversion to XML format. The response determines how a profile sends processed data. In Phase 6, a response determines how and where the output data is sent or stored, e.g., via FTP, HTTP or e-mail. A profile can use several responses in parallel. Structured representation of the input data in Phase 3. The target tree receives the values transferred via mapping and passes them on to Phase 4, Phase 5, or Phase 6. ## Related - [Profile in source structure (subprofile)](/phase-3-target-structure-subprofile-source.md) - [Source structure menu](/phase-3-source-structure-menu.md)