--- title: "call profile()" slug: "basic-call-profile" updated: 2026-08-10T12:06:51Z published: 2026-08-10T12:06:51Z canonical: "docs.lobstersoftware.com/basic-call-profile" --- > ## 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() Calls the Profile with name **a** synchronously or asynchronously. If called synchronously, the function waits for the termination of the called profile. If called asynchronously, the calling profile continues the Mapping without waiting. In order to be called by this function, a profile has to be active and must have an Input agent of type *Message*. Trying to call profiles with other Input agents, inactive profiles and non-existing profiles will cause the function to return *false*. If parameter **b** is set to *direct*, profile **a** will not be called via Message and does not need to have an input agent of type *Message*. The payload being processed by the called profile **a** is specified in **c**. It is interpreted with the encoding in **d** and passed on to the profile as corresponding byte stream (only if called by *Message* – see above). If parameter **b**=direct, the data is passed in the encoding of profile **a**. In the case of a synchronous call of the profile, the function returns *true* after the successful termination of the called profile*.* In the case of an asynchronous call, *true* is returned immediately. If the call of the profile leads to an error, the error will be logged but the calling profile continues processing. The result of the function is *false* in that case. If parameter **b**=direct, a string with the converted data of the called profile is returned if that profile uses class [PassBackDataResponse](/v1/docs/en/pass-back-data-response) in one of its responses. If any error occurs, the string will be empty. ## Parameters | Parameter | Description | | --- | --- | | a | The name of the profile to be called. | | b | (optional) *sync* for synchronous call or *async* for asynchronous call. Default: *async.* | | c | Data to be passed on to the called profile. | | d | (optional) Encoding for ***c***. Default: *8859_1*. **NOTE:** If you specify the value *Base64* here, the value in parameter ***c*** is interpreted as Base64 encoded and sent to the profile decoded. | ## Examples The following profiles are given. | Profile name | Type of input agent | | --- | --- | | FTP to File | Cron:Ftp | | Message to FTP | Message | | FTP to File2 | Cron:Trigger | | Parameter a | Parameter b | Parameter c | Parameter d | Call of profile successful | Result | | --- | --- | --- | --- | --- | --- | | FTP to File | sync | Data | | Information not available. | "false", because the called profile does not have an input agent of type "Message". | | FTP to File2 | async | Data | | Information not available. | "false", because the called profile does not have an input agent of type "Message". | | Message to FTP | sync | Data | | Yes | true | | Message to FTP | sync | Data | | No | false | | Message to FTP | async | Data | | Yes | true | | Message to FTP | async | Data | | No | true | ## Variables - The calling profile's job number is passed to the called profile in the system variable MSG_CALL_VAR_JOBNR. Create this variable in the called profile to access the value. - If an exception occurs, because the MessageService is not available, the function only return "*false"*, but the exception message can be retrieved via the system variable MSG_CALL_VAR_SYS_EXCEPTION (if it is defined). - See [Profile chains](/v1/docs/en/intro-profile-chains) in general. 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. The input agent receives data in Phase 1 and starts a job for further processing. It works either as event based (passively waits for data) or scheduled (actively fetches data).