# ReceiveSugarCRMMessage Trigger

The SugarCRM server provides a facility called Web Logic Hooks with which records that have been created, deleted and changed can be forwarded periodically to other services. Its purpose is to synchronize those changes with another system.

The ReceiveSugarCRMMessage trigger is a REST endpoint which accepts posted data from a Web Logic Hook of the SugarCRM server. The ReceiveSugarCRMMessage trigger supports multiple trigger handlers. A single trigger can execute multiple flows, or multiple triggers can execute the same flow, based on the port and the path field values.

Important: Before using the ReceiveSugarCRMMessage trigger, create a Web Logic Hook in SugarCRM. To create a Web Logic Hook, open the administration page of the SugarCRM web application while logged in as an administrator. Select the Web Logic Hooks link from that page. On the Web Logic Hooks page, select the Create button. Enter the following information when prompted:

- URL - Enter the REST endpoint you get from the Copy link on the View and Test link in the Apps page in Flogo Enterprise. To that URL, append the path which you will configure the trigger to listen on.
- Trigger Event - After Save and After Delete are the only values supported by the trigger at this time.
- Module Name - Select the module whose change information you want to capture.
- Request Method - POST is the only method supported by the trigger.

To create a flow using the ReceiveSugarCRMMessage trigger see "Creating a Connection Flow".

## Configuration

The Configuration tab has the following fields that identify which SugarCRM connection to use and the type of object to create.

Field | Description
--- | ---
Module | The name of the SugarCRM module whose data is being forwarded to the trigger. Select the module type you want to create.
Path | The resource path for the REST service. This must match the path entered in the URL field when creating the Web Logic Hook link on the SugarCRM server. The path must begin with a `/` (forward slash).
Port | The port assigned for the SugarCRM receiver, that is used to listen for any requests for this trigger.

## Output

The schema for the output data of this activity is displayed in a tree format in this tab. This schema will vary depending on the Connection and Module you select in the Configuration tab. The output of an activity is displayed for informational purposes only and cannot be modified or altered. The properties that are displayed in the Output tab schema correspond to the output of this activity and can be used as input by subsequent activities in the flow.

Related concepts
Overview
Related tasks
Creating a SugarCRM Connection
Related reference
SugarCRMCreate
SugarCRMQuery
SugarCRMUpdate
SugarCRMDelete
Copyright © TIBCO Software Inc. All rights reserved.