An open API service indexing awesome lists of open source software.

https://github.com/mtcextendee/mautic-sql-conditions-bundle

Custom SQL condition for campaigns
https://github.com/mtcextendee/mautic-sql-conditions-bundle

extendee mautic mautic-api mautic-plugin

Last synced: 5 months ago
JSON representation

Custom SQL condition for campaigns

Awesome Lists containing this project

README

          

# MauticSqlConditionsBundle

SQL conditions for Mautic

## Support

https://mtcextendee.com/plugins

## Installation

### Command line
- `composer require mtcextendee/mautic-sql-conditions-bundle`
- `php app/console mautic:plugins:reload`
- Go to /s/plugins and setup SQL Conditions

### Manual
- Download last version https://github.com/mtcextendee/mautic-sql-conditions-bundle/releases
- Unzip files to plugins/MauticSqlConditionsBundle
- Clear cache (app/cache/prod/)
- Go to /s/plugins/reload
- Setup SQL Conditions integration

## Usage

1, See new item on left menu:

![image](https://user-images.githubusercontent.com/462477/61192212-1567ed00-a6b3-11e9-971e-eb3ab3df6beb.png)

2, Setup SQL conditions

3, Parameters for SQL

- :contactId
- :campaignId
- :eventId
- :rotation

4, Condition return true If there is results

## Examples

Condition for contacts with ID greather like 2000

`SELECT l.id FROM leads l WHERE l.id = :contactId and l.id > 2000`

## Credits

Icons made by Eleonor Wang from www.flaticon.com