Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Campaign Calculated Effect Results

The calculated result of each campaign effect, exported daily as a delta file.

The Campaign Calculated Effect Results file contains the outcome of each effect of a campaign execution, for example the number of units granted or the reward issued.

Delta export. Each daily file contains effect results created or updated during that day. Upsert on calculatedEffectResultId and keep the row with the latest updatedAt.

File: analytics/Campaigns/campaigns_calculated_effects_results_YYYY_MM_DD.csv Primary key: calculatedEffectResultId

A sample file is provided below:

Available Data (in column order, see Column types for how each type is written):

Column
Type
Can be empty
Description

calculatedEffectResultId

uuid

No

Unique ID of the calculated effect result

tenantId

uuid

No

ID of the tenant where the campaign was created

campaignExecutionId

uuid

No

ID of the campaign execution the effect belongs to (links to the Campaign Execution file)

status

enum

No

Status of the effect result (success, skipped, or failed)

targetId

uuid

No

ID of the member who received the effect (same value as memberId in the Members file)

type

enum

No

Type of the effect: give_points, deduct_unit, give_reward, grant_badge, assign_member_custom_attribute, remove_member_custom_attribute, cancel_transaction_effects, assign_member_to_tier

createdAt

datetime

No

Date when the entry was created

updatedAt

datetime

No

Date when the entry was last updated

points

decimal

Yes

Number of units calculated by the effect

couponValue

decimal

Yes

Value of the coupon granted (for dynamic coupons)

rewardId

uuid

Yes

ID of the reward granted (links to the Rewards file)

walletCode

string

Yes

Code of the wallet type the units were granted to (matches walletTypeCode in the Unit Transfers and Wallet Balance files)

error

string

Yes

Error message for failed effects

Last updated

Was this helpful?