Last updated
Was this helpful?
To trigger a UbiFunction through the Ubidots Events Engine, follow these steps:
Start by creating a new event from the Events section under the Data tab in the Ubidots navbar.

Next, configure the event logic using Ubidots' AND and OR operators.
For additional details on how to configure conditional and complex Event triggers, check out our Creating Conditional Events and Alerts user guide.

Once the Triggers logic is configured, create the action that calls a UbiFunction:
Step 1. Select the UbiFunction action.

Step 2. Select the method used to trigger the UbiFunction: GET or POST. The UbiFunction must use the same method. Note: When you choose GET, the default Content-Type: application/json header disappears.
Step 3. Search for and select the UbiFunction in the dropdown menu.
Step 4. Add the required headers. POST requests require the default Content-Type: application/json header.

Step 5. Customize the Active trigger and Back to normal messages. Note: These fields always expect a JSON object. When the HTTP method is GET, the JSON is automatically converted into query parameters and appended to the UbiFunction URL.

Step 6. Name the event, set the active days and hours, and save it.

Your UbiFunction now runs whenever the event is triggered.
Last updated
Was this helpful?
Was this helpful?