--- title: "trigger profile()" slug: "basic-trigger-profile" updated: 2026-08-12T13:37:19Z published: 2026-08-12T13:37:19Z canonical: "docs.lobstersoftware.com/basic-trigger-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. # trigger profile() This function calls the Profile with name **a**. In order to be called by this function, a profile must be active and have a scheduled Input agent and schedule type "Trigger". Calling profiles with other input agents, inactive profiles and non-exiting profiles will cause the function to return "false". The available call modes in **b** are "sync", "async" and "direct". In the synchronous case, the system waits for the end of the profile run, in the asynchronous case it continues with its own processing, without waiting for the termination of the triggered profile. After the successful call of the profile, the function returns "true". If an asynchronous call is performed, true is returned immediately. If the call of the profile is leading 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 the "direct" mode is used, the return value (in UTF-8) is supplied by the called profile (resp. by the first job, if several jobs get created), which has to use the class PassBackDataResponse in a Response. > [!NOTE] > **NOTE:** > > An error e-mail will be sent if the triggered profile is set to "sync" and is already running! Solution: Either set parameter ***b*** to "async" or allow parallel processing for the triggered profile (deactivate option "Profile may only run in one instance" in [**General (Main settings)**](/v1/docs/en/profiles--tab-1-1). ## Parameters | Parameter | Description | | --- | --- | | a | Name of the profile to be called. | | b | (optional) Call mode. Allowed values: "*sync*", "*async", "direct*"*.* Default: "*async".* | ## Examples The following profiles are defined. | Profile name | Type of input agent | | --- | --- | | FTP to File | Cron:Ftp | | Message to FTP | Message | | FTP to File2 | Cron:Trigger | | FTP to File3 | Cron:Trigger | | Parameter a | Parameter b | Call of profile successful | Result | | --- | --- | --- | --- | | FTP to File | sync | Was not called | *false*, because the called scheduled profile is not of subtype *Trigger*. | | Message to FTP | sync | Was not called | *false*, because the called profile is not scheduled. | | FTP to File2 | async | Yes | *true* | | FTP to File2 | sync | No | *false* | | FTP to File2 | async | No | *true* | | FTP to File3 | direct | Yes | ** | ## Variables - The calling profile's job number is passed to the called profile in the system variable with the name 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 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). 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.