Create Login Request (Integration function)
The function Create Login Request (Integration function) creates the XML structure for a Integration login object (LobsterDataLoginRequest) based on the specifications for parameters (b to e) and saves it in the variable with the name defined in parameter a.
For example, an ImportResponder (Responder) (in the field 'Additional parameters') can refer to this variable to define the login context for an Import.
The Import (Integration function) function also provides a separate parameter for a Integration login object to which this variable can be assigned as a source.
Parameters
|
Parameter |
Description |
Example |
Note |
|
a |
Name of the variable in which the Integration login XML is to be saved. |
var__SCM_Login_Request |
This parameter must be assigned the name of the variable as a text value (typically a static assignment with parameter type '#').
|
|
b |
User name (username) of a user Standard: MSG_CALL_SCM_User_username |
jabend |
As in the login dialog, the identification of the user account is case-sensitive. Without an assignment for this parameter, the value of the metadata variable MSG_CALL_SCM_User_username is used, which is automatically preset when a profile is called from Lobster Data Platform / Orchestration. |
|
c |
ID (id)or name (roleName) of a role Standard: MSG_CALL_SCM_Role_id |
Administrator |
The identification of a role by name is case sensitive. Without an assignment for this parameter, the value of the metadata variable MSG_CALL_SCM_Role_id is used, which is automatically preset when a profile is called from Lobster Data Platform / Orchestration. |
|
d |
ID (id) or name 1 (address.Name1) of a company (see Companies/Clients) Standard: MSG_CALL_SCM_Company_id |
Smart Logistics AG |
Either the ID of a company or the exact name of the field 'Name 1' in the company account can be entered. Without an assignment for this parameter, the value of the metadata variable MSG_CALL_SCM_Company_id is used, which is automatically preset when a profile is called from Lobster Data Platform / Orchestration. |
|
e |
Determines whether the check of the selection of company and role (via parameter c and d) against the companies and roles assigned to the user account identified via parameter d should be dropped. Standard: false ('Check will take place') |
true |
With the value true the specified login context is accepted regardless of existing assignments for Companies/Clients and Roles in the referenced user account. Otherwise, (e.g. with the value false or if no value is assigned), a check of company and role against the referenced user account takes place when the Integration login is processed at runtime. If a referenced company or role is then not 'legitimized' in the referenced user account, an error occurs. However, this check does not take place when calling the function Create Login Request (Integration function). |
Example
A profile call from Lobster Data Platform / Orchestration should, among other things, cause the deletion of certain entities via Batch import, which should be executed with a login in the role 'Super User' (with ID 1), so that the deletion can be executed reliably regardless of ownership and role permissions.
Under certain circumstances, the same Batch import may also create new entities for which a specific company from the existing hierarchy ('ACME Holding Ltd.') must be assigned as ownerId.
At the same time, the user in whose context the profile was called up should be traceable, e.g. as 'creator' (creatorId) of the added entities.
Configuration:
In the target structure of the profile the function Create Login Request (Integration function) is parameterized in a calculation field as follows:
The parameter a identifies the name of a variable in which the Integration login is to be stored as var__RUNAS_SUPERUSER_HOLDING.
The parameter b is not assigned, so that the logged-in user is taken from the variable MSG_CALL_SCM_User_username, which was initialized with the profile call.
The parameter c identifies the role 'Super User' via the internal ID 1.
The parameter d references the exact name (address.name1) of an existing company account.
The parameter e with the value true ensures that there is no check as to whether or not the same user could interactively log in as 'Super User' in the context of 'ACME Holding Ltd'.
In the response path set up for the Import, the ImportResponder (Responder) refers to the variable set in the mapping: