Skip to content

Configuration

Configure Lime CRM admin config

Info

If you used the addon-installer the Lime Admin configuration should already be setup correctly. This also includes configuration for Link clicks, Email openings and Autofill properties (but you still need to make a change in the Automated Flow card view later, read more here). All you need to do is to confirm that everything looks correct and press save. Do not forget the "Enable integration" checkbox.

Configuration is done in the Lime CRM webclient under Administration page -> Settings -> Automated Flows.

The editor lets you map the tables and fields to the corresponding fields in the actual database. In the best of worlds, this doesn't need to be touched since you have installed the LIP package.

The add-on can also be enabled or disabled by changing the enabled boolean. When it is disabled, Lime Marketing gets a 403 error when it validates the integration or refreshes a participant. Webhooks from Lime Marketing are still handled, and Lime CRM still adds and removes participants in Lime Marketing. See Copies of a Lime CRM environment.

An Example on how a valid config may look like can be found on the Example config page.

Tables and fields

If there are table and field names that don't follow the default setup this need to be configured in the Lime admin config. All table names and fields are validated when saving the config so if there are any errors, we'll let you know.

Autofill properties

If autofill properties should be used they have to be configured in the Lime admin config, Lisa and in the card view for the automated flow.

Info

If you used the addon-installer to install the database structure you would have selected the tables that should be connected to Automated Flow Participants already

Add a belongs-to relation for the chosen properties (e.g. person or company) on the participant card in Lisa. In the config: Add/remove the fields on the participant which should trigger automatic mapping of the participant property values.

autofill properties

You also need to set up the field to get data from. For example if you have chosen person to be considered a participant and you are using an Email property in the Automated flow you need to add "person.email" in "Field to get data from". This is done in the card view for an Automated flow under "Properties".

field to get data from

When a person or company is set for a participant the integration automatically tries to get data from that object as configured for the flow's properties. If a property has the lime_field = 'person.email' the integration will try and get that value for that property on the connected person. You can leave the autofillproperties empty if you don’t want that behavior.

If everything is setup correctly you should be able to save the config. Otherwise check the error message and try to figure out what is wrong. Also check webserver error logs if you have access.

The relational correctness of the tables and fields are not validated so make sure that is correct by checking the required tables.

By checking the Enabled sync of clicked links/openings in the config you can control whether incoming link clicks and openings from automated flow emails should show up in Lime. When using that feature you need to configure those tables and fields

config link click opening

To get a better overview of who opened/clicked what it is possible to add related fields person/company/etc to emailopening/linkclick which will be automatically copied from the automatedflowparticipant if the same fields exists on the automatedflowparticipant and it has a value. This also works for automatedflowparticipant itself if that is set as a related field on emailopening/linkclick.

Configure Lime Marketing endpoint

The Lime Marketing endpoint and API key can be configured in the application config.

Configure in application config

Open the application config @ %ProgramData%\Lundalogik\LIME Pro Server\application_config.yaml.

Add the addon_lime_automation section under config and secrets without breaking the format of the file if there are other configurations in that file.

application_name:
    config:
        addon_lime_automation:
            apiurl: https://app.bwz.se/bedrock/customer/api
    secrets:
        addon_lime_automation:
            apikey: *guid_api_key_created_in_lime_marketing*

More info about environment configuration here.

Configure in CAFE for cloud customers

Open the customer config in CAFE and add the apiurl under config and apikey under secrets. It should look something like this:

config cafe

Copies of a Lime CRM environment

Delete the automated flows in a copy of production

A copy of production, such as a test environment, has the automated flows and participants of production. If it can reach the same Lime Marketing app, it can add and cancel participants in the flows of production, and real recipients get its emails and SMS.

Several Lime CRM environments can share a Lime Marketing app, since each one only uses the flows synchronized with it. A copy of production is different. Its flows and participants have the same Lime Marketing IDs as in production, and Lime Marketing cannot tell the two environments apart.

As long as the copy has the flows of production and can reach the app:

  • A participant in the copy that gets "Execute the flow for the participant" checked, by a user or a trigger, is added to the flow with the same ID, if that flow is started and synchronized with Lime CRM. It gets the emails and SMS of the flow but never shows in production.
  • Deleting a participant in progress in the copy, or unchecking its checkbox, removes the participant with the same Lime Marketing ID from the flow and cancels it in production.

These do not prevent it:

  • Not connecting the copy in Lime Marketing
  • Giving the copy another API key for the same app
  • Unchecking "Enable integration" in Lime Admin

When you copy production to another environment:

  1. Remove apiurl and apikey under addon_lime_automation from the application config of the copy before you start Lime CRM there.
  2. Delete the automated flows in the copy. Also clear bw_automatedflowparticipantid on the participants, or delete the participants in progress. The copy then cannot reach the flows of production, even if the URL and key are added back.
  3. If the copy needs the integration, add the URL and key back, connect the copy in Lime Marketing as its own Lime CRM integration and only use flows synchronized with it.

If a copy has already reached the Lime Marketing app of production, see Unexpected participants or cancellations in an automated flow.

Set up the automated flow visualizer (Optional)

For a quick and visual way to see in which automated flows a person is currently enrolled, you can add the widget lwc-addon-lime-automation-participant-visualizer-widget to any card that has a relation to automatedflow. This will show a summary of relevant information from related automated flows and can be added either as a card-header or on a field.

visualizer

If the relation from automated flow participant and the limetype you're on is not named like the limetype, you need to specify this in the widgets properties:

For example if you would have two relations to person from the automated flow participant (i.e. person and person2) then you would need to specify what field to use like below

visualizer-config

Set up the option-visualizer for automatedflow participant actions (Optional)

If you have "limepkg-option-visualizer" in your solution we recommend that you add the following config for automatedflow participant actions and sendout status:

{
    "name": "Flow participant action → Action type",
    "prefix": "icon",
    "show_value": true,
    "apply_badge": false,
    "option_icon_configs": [
        {
            "optionkey": "other",
            "icon": "workflow"
        },
        {
            "optionkey": "email",
            "icon": "envelope"
        },
        {
            "optionkey": "sms",
            "icon": "SMS"
        },
        {
            "optionkey": "condition_true",
            "icon": "checked_2"
        },
        {
            "optionkey": "condition_false",
            "icon": "cancel"
        },
        {
            "optionkey": "target_date",
            "icon": "clock_checked"
        },
        {
            "optionkey": "lime_participant_refresh",
            "icon": "refresh"
        },
        {
            "optionkey": "http_request",
            "icon": "cloud"
        }
    ],
    "limetype": "automatedflowparticipantaction",
    "full_path_to_property": "automatedflowparticipantaction.action_type"
}
{
    "name": "Flow participant action → Sendout status",
    "prefix": "icon",
    "show_value": true,
    "apply_badge": false,
    "option_icon_configs": [
        {
            "optionkey": "not_sent",
            "icon": "cancel_2"
        },
        {
            "optionkey": "sent",
            "icon": "send_email"
        },
        {
            "optionkey": "bounced",
            "icon": "brick_wall"
        },
        {
            "optionkey": "delivered",
            "icon": "mailbox_closed_flag_up"
        }
    ],
    "limetype": "automatedflowparticipantaction",
    "full_path_to_property": "automatedflowparticipantaction.sendout_status"
}