Action is an AWS Lambda function intended to push new or modify existing data in a 3rd party system

Action Input Format

{
    // workflow metadata
    "trigger_proxy": "cn_source_connector",
    "proxy": "cn_target_connector",
    "action": "do_something",
    "user_id": 123,

    // Fields required for workflow progress loggind at the HUB
    "log_data" {
        "main_log_id": "56b335c42adfbc00034f65c3",
        "user_id": 177,
        "trigger_id": "56b2173e2adfbc00034f638f"
    },

    // A set of parameters needed to connect to 3rd party API.
    // These parameters will be requested on the application connection form.
    "apiKey": "SOME-API-KEY",
    // etc.

    // Data, received from trigger and mapped to a target system format
    "post_args": {
        // ...
    }
}

Action Output Format

Actions are not expected to produce any data, so the only output they have is an execution summary similar to the following:

{
    "stats": {
        // A single object name (e.g. contact, transaction, etc.)
        // will be used to format a user-facing log message. 
        // For example:
        // - "Contact created (ABC001)"
        "objectName": "contact",

        // A plural object name (e.g. contacts, transactions, updates, etc.)
        // will be used to format a user-facing log message. 
        // For example:
        // - "2 contacts updated (ABC002, ABC003)"
        "objectNamePlural": "contacts",

        // List of user-facing reference numbers or object names.
        // If the number of modified objects exceeds reasonable amount, 
        // only a total number of retrieved objects must be returned
        // (e.g. "created: 25")
        "created": ["ABC001"],
        "updated": ["ABC002", "ABC003"],
        "deleted": 0
    }
}