--- title: "core:GetObjectFromBatch (Preprocessor)" slug: "core-get-object-from-batch" updated: 2026-04-29T08:40:40Z published: 2026-04-29T08:40:40Z canonical: "docs.lobstersoftware.com/core-get-object-from-batch" --- > ## 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. # core:GetObjectFromBatch (Preprocessor) For [Batch import](/v1/docs/en/core-batch-import), the value of the attribute `rememberAs` (see [Single import](/v1/docs/en/core-import)) can be used to define a name under which an entity imported in a batch node is "remembered". Later processed batch nodes in the same [Batch import](/v1/docs/en/core-batch-import) can then use the `GetObjetFromBatch` preprocessor to refer to a previously "remembered" entity. The following structure can be directly integrated into the import structure based on the template `preProcessor:GetObjectFromBatch` (see [Orchestration templates](/v1/docs/en/orchestration-integration-templates)): ![images/download/attachments/58596391/image2020-10-1_17-51-40-version-1-modificationdate-1601567503008-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2020-10-1_17-51-40-version-1-modificationdate-1601567503008-api-v2.png) | Parameter | Type | Meaning | Content (*fixed* value/example) | | --- | --- | --- | --- | | `xsi:type ` | String attribute | Type of preprocessor. | `core:GetObjectFromBatch` | | `rememberedAs` | String attribute | Name of a "remembered" entity. | `myUser` | | `target` | String attribute | Name of the target element or attribute (with the prefix "@") to which the return value should be assigned. | `linkedEntityId` | | `returnId` | Boolean attribute | Defines the return value (only ID or complete entity). | `true / false` | | `IValueResolver` | Placeholder | Instead of this node you can optionally use a [Resolvers](/v1/docs/en/core-i-value-resolver) if only a detail of the entity should be used as return value. | See example below | **NOTE:** The [Resolvers](/v1/docs/en/core-i-value-resolver) (see `IValueResolver`) is irrelevant if the `returnId` parameter has the value true, because then the ID (`id`) of the entity is always returned. Example: A [Batch import](/v1/docs/en/core-batch-import) should create a new company account ("Demo Company"), a new role ("Demo Role") and finally a new user ("demoUser"), who should have access to the new company and the new role at login. - In the `batch` node for creating the new company account, this is "remembered" by the `rememberAs` attribute under the name "demoCompany". - The following `batch` node for creating the new role assigns the noted new company as owner of the role via `GetObjectFromBatch` preprocessor and notes the new role as "demoRole". - The third `batch` node for creating the user refers via `GetObjectFromBatch` preprocessor to the noted "demoCompany" to assign it as owner and as "Assigned Company". - The first preprocessor sets the owner in the same way as the role with `returnId=true`. - When assigning the company (without technical necessity), the second preprocessor demonstrates how to proceed alternatively with `returnId=false` and a [Resolvers](/v1/docs/en/core-i-value-resolver) (`core:PropertyResolver`). - The third preprocessor again uses the simpler variant with `returnId=true` to assign the remembered role "demoRole" to the user. **NOTE:** The assignment of an owner has no functional meaning for the role with respect to access rights, since for this entity access is only restricted depending on the [Role of session](/v1/docs/en/base-session-role-value) and the hierarchy between the roles (see [Roles](/v1/docs/en/base-role)). However, it can still be useful to assign a specific owner to the role, for example, if the reference to the owning company is to be used as an regulating principle (for filtering or sorting, for example). ```xml                        
                                                           Demo Role            *                                                                                                                                                                                                                    
            ```