Giving Summary
The Giving Summary is a list of calculations that can be found throughout the Klevr Fundraising app in different locations.
The Giving Summary is a list of calculations that can be found throughout the Klevr Fundraising app in different locations.
It is used to give a simple visual representation of relevant calculations while reducing the amount of fields on the screen.
From a technical perspective it is displayed using a Web Resource that exposes HTML inside of a section on a form. It is worth noting that a lot of the calculations will only show once there is relevant data in them as to not fill up the screen with blank data.

Below are a list of tables and summary fields, along with descriptions explaining how each is calculated.
Technical note for dates in the calculations: First Gift Date and First Gift On, First Gift, Recurring Gift, Last Gift Amount etc. These calculations are based on the Book Date field on the Gift which is a Date Only field (no time). If there are two or more Gifts on the same day that meet the criteria then whatever one is returned first in the query will be the one considered for the reporting.
Contact
- First Gift - Lookup value to the first Gift record id where the Gift Status Reason eq Processed, finds the earliest Book Date and 'Return' does not eq 'Yes'.
- First Gift On - Shows the date on which the first Gift was created on, where the Status Reason eq Processed and finds the earliest Book Date and 'Return' does not eq 'Yes'
- First Gift Amount - Looks at the associated Gifts where the Status Reason eq Processed, finds the earliest Book Date and 'Return' does not eq 'Yes'. Takes and displays the 'Amount' if 'Revised Amount' is blank. If 'Revised Amount' on the Gift contains data then 'First Amount' will show the 'Revised Amount' instead.
- Last Gift - Lookup value to the last Gift where the Status Reason eq Processed, finds the most recent Book Date and 'Return' does not eq 'Yes'.
- Last Gift On - Shows the date on which the last Gift was created on and where the Status Reason eq Processed and finds the most recent Book Date and 'Return' does not eq 'Yes'.
- Last Gift Amount - Looks at the associated Gifts where the Status Reason eq Processed, finds the most recent Book Date and 'Return' does not eq 'Yes'. Takes and displays the 'Amount' if 'Revised Amount' is blank. If 'Revised Amount' on the Gift contains data then 'Last Gift Amount' will show the 'Revised Amount' instead.
- Next Recurring Gift On - Finds any associated Recurring Gift records and shows 'Next Due Date' value from the record.
- Next Recurring Gift Amount - Finds any associated Recurring Gift records and shows the 'Amount' value from the record.
- Influenced Value Of Gifts - Looks at the 'Amount' field of all associated Gifts where the 'Attributed To' is connected to the Contact, Status Reason eq Processed, and 'Return' does not eq 'Yes'. Sum all of the 'Amounts' and display the total in the 'Influenced Value of Gifts'. If 'Revised Amount' on a Gift contains data then use the 'Revised Amount' for this gift instead of the 'Amount' field.
- Influenced Count Of Gifts - Finds the total count of all Gifts where the 'Attributed To' is connected to the Contact, the Status Reason eq Processed and 'Return' does not eq 'Yes'.
- Soft Credit Count Of Gifts - Finds the total count of all Gifts with a Status Reason of Processed where the 'Soft Credit To' is connected to the Contact and 'Return' does not eq 'Yes'.
- Soft Credit Value Of Gifts - Looks at the 'Amount' field of all associated Gifts where the 'Soft Credit To' is connected to the Contact, Status Reason eq Processed, and 'Return' does not eq 'Yes'. Sum all of the 'Amounts' and display the total in the 'Soft Credit Value of Gifts'. If 'Revised Amount' on a Gift contains data then use the 'Revised Amount' for this gift instead of the 'Amount' field.
- Solicited Count Of Gifts - Finds the total Count of all Gifts with a Status Reason of Processed where the 'Solicited To' is connected to the Contact and 'Return' does not eq 'Yes'.
- Solicited Value Of Gifts - Calculates all the associated Gifts with a Status Reason of Processed where the 'Solicited To' is connected to the Contact and 'Return' does not eq 'Yes'. Takes and displays the 'Amount' if 'Revised Amount' is blank. If 'Revised Amount' on the Gift contains data then 'Solicited Value Of Gifts' will show the 'Revised Amount' instead.
- Largest Gift - Lookup value to the largest Gift where the Status Reason eq Processed and 'Return' does not eq 'Yes'.
- Largest Gift On - Shows the date on which the largest gift was created on, where the Status Reason eq Processed, and 'Return' does not eq 'Yes'.
- Largest Gift Amount - Looks at all the associated Gifts where the Status Reason eq Processed and 'Return' does not eq 'Yes'. Take the largest of the 'Amounts' and display that in the 'Largest Gift Amount'. If 'Revised Amount' on a Gift contains data then use the 'Revised Amount' for this gift instead of the 'Amount' field.
- Average Gift Amount - Calculates the average amount on all associated Gifts where the Status Reason eq Processed
- Last 6 Months Count Of Gifts - Calculates the total count of all the associated Gifts in the last 6 months where the Status Reason eq Processed and 'Return' does not eq 'Yes'. This calculation is not done automatically, it is using a power automate to update once a day.
- Last 6 Months Value Of Gifts - List all the associated Gifts where the Status Reason eq Processed, 'Return' does not eq 'Yes', and 'Book Date' is in the last 6 Months. Then Sum the 'Amount' of all these items and display in the 'Last 6 Months Value of Gifts'. If 'Revised Amount' on a Gift contains data then the value from 'Revised' Amount will be used in the calculation instead of 'Amount'. This calculation is not done automatically, it is using a power automate to update once a day.
- Current Year Count Of Gifts - Calculates the total count of all the associated Gifts in the current year where the Status Reason eq Processed and 'Return' does not eq 'Yes'. This calculation is not done automatically, it is using a power automate to update once a day.
- Current Year Value Of Gifts - List all the associated Gifts where the Status Reason eq Processed, 'Return' does not eq 'Yes', and 'Book Date' is inside of the current year. Then Sum the 'Amount' of all these items and display in the 'Current Year Value of Gifts'. If 'Revised Amount' on a Gift contains data then the value from 'Revised' Amount' will be used in the calculation instead of 'Amount'. This calculation is not done automatically, it is using a power automate to update once a day.
- Last Year Count Of Gifts - Calculates the total count of all the associated Gifts from last year where the Status Reason eq Processed and 'Return' does not eq 'Yes'. This calculation is not done automatically, it is using a power automate to update once a day.
- Last Year Value Of Gifts - List all the associated Gifts where the Status Reason eq Processed, 'Return' does not eq 'Yes', and 'Book Date' is eq to last year. Then Sum the 'Amount' of all these items and display in the 'Last Year Value of Gifts'. If 'Revised Amount' on a Gift contains data then the value from 'Revised' Amount will be used in the calculation instead of 'Amount'. This calculation is not done automatically, it is using a power automate to update once a day.
- Lifetime Count Of Gifts - Calculates the total count of all the associated Gifts where the Status Reason eq Processed and 'Return' does not eq 'Yes'.
- Lifetime Value Of Gifts - List all the associated Gifts where the Status Reason eq Processed, 'Return' does not eq 'Yes'. Then Sum the 'Amount' of all these items and display in the 'Lifetime Value of Gifts'. If 'Revised Amount' on a Gift contains data then the value from 'Revised' Amount will be used in the calculation instead of 'Amount'.
- Count Of Commitments - This calculates the count of all active Donor Commitments with a Status Reason of Active.
- Value Of Commitments - This calculates the amount of all active Donor Commitments with a Status Reason of Active.
Account
- First Gift - Lookup value to the first Gift record id where the Gift Status Reason eq Processed, finds the earliest Book Date and 'Return' does not eq 'Yes'.
- First Gift On - Shows the date on which the first Gift was created on, where the Status Reason eq Processed and finds the earliest Book Date and 'Return' does not eq 'Yes'
- First Gift Amount - Looks at the associated Gifts where the Status Reason eq Processed, finds the earliest Book Date and 'Return' does not eq 'Yes'. Takes and displays the 'Amount' if 'Revised Amount' is blank. If 'Revised Amount' on the Gift contains data then 'First Amount' will show the 'Revised Amount' instead.
- Last Gift - Lookup value to the last Gift where the Status Reason eq Processed, finds the most recent Book Date and 'Return' does not eq 'Yes'.
- Last Gift On - Shows the date on which the last Gift was created on and where the Status Reason eq Processed and finds the most recent Book Date and 'Return' does not eq 'Yes'.
- Last Gift Amount - Looks at the associated Gifts where the Status Reason eq Processed, finds the most recent Book Date and 'Return' does not eq 'Yes'. Takes and displays the 'Amount' if 'Revised Amount' is blank. If 'Revised Amount' on the Gift contains data then 'Last Gift Amount' will show the 'Revised Amount' instead.
- Next Recurring Gift On - Finds any associated Recurring Gift records and shows 'Next Due Date' value from the record.
- Next Recurring Gift Amount - Finds any associated Recurring Gift records and shows the 'Amount' value from the record.
- Influenced Value Of Gifts - Looks at the 'Amount' field of all associated Gifts where the 'Attributed To' is connected to the Account, Status Reason eq Processed, and 'Return' does not eq 'Yes'. Sum all of the 'Amounts' and display the total in the 'Influenced Value of Gifts'. If 'Revised Amount' on a Gift contains data then use the 'Revised Amount' for this gift instead of the 'Amount' field.
- Influenced Count Of Gifts - Finds the total count of all Gifts where the 'Attributed To' is connected to the Account, the Status Reason eq Processed and 'Return' does not eq 'Yes'.
- Soft Credit Count Of Gifts - Finds the total count of all Gifts with a Status Reason of Processed where the 'Soft Credit To' is connected to the Account and 'Return' does not eq 'Yes'.
- Soft Credit Value Of Gifts - Looks at the 'Amount' field of all associated Gifts where the 'Soft Credit To' is connected to the Account, Status Reason eq Processed, and 'Return' does not eq 'Yes'. Sum all of the 'Amounts' and display the total in the 'Soft Credit Value of Gifts'. If 'Revised Amount' on a Gift contains data then use the 'Revised Amount' for this gift instead of the 'Amount' field.
- Largest Gift - Lookup value to the largest Gift where the Status Reason eq Processed and 'Return' does not eq 'Yes'.
- Largest Gift On - Shows the date on which the largest gift was created on, where the Status Reason eq Processed, and 'Return' does not eq 'Yes'.
- Largest Gift Amount - Looks at all the associated Gifts where the Status Reason eq Processed and 'Return' does not eq 'Yes'. Take the largest of the 'Amounts' and display that in the 'Largest Gift Amount'. If 'Revised Amount' on a Gift contains data then use the 'Revised Amount' for this gift instead of the 'Amount' field.
- Average Gift Amount - Calculates the average amount on all associated Gifts where the Status Reason eq Processed
- Last 6 Months Count Of Gifts - Calculates the total count of all the associated Gifts in the last 6 months where the Status Reason eq Processed and 'Return' does not eq 'Yes'. This calculation is not done automatically, it is using a power automate to update once a day.
- Last 6 Months Value Of Gifts - List all the associated Gifts where the Status Reason eq Processed, 'Return' does not eq 'Yes', and 'Book Date' is in the last 6 Months. Then Sum the 'Amount' of all these items and display in the 'Last 6 Months Value of Gifts'. If 'Revised Amount' on a Gift contains data then the value from 'Revised' Amount will be used in the calculation instead of 'Amount'. This calculation is not done automatically, it is using a power automate to update once a day.
- Current Year Count Of Gifts - Calculates the total count of all the associated Gifts in the current year where the Status Reason eq Processed and 'Return' does not eq 'Yes'. This calculation is not done automatically, it is using a power automate to update once a day.
- Current Year Value Of Gifts - List all the associated Gifts where the Status Reason eq Processed, 'Return' does not eq 'Yes', and 'Book Date' is inside of the current year. Then Sum the 'Amount' of all these items and display in the 'Current Year Value of Gifts'. If 'Revised Amount' on a Gift contains data then the value from 'Revised' Amount' will be used in the calculation instead of 'Amount'. This calculation is not done automatically, it is using a power automate to update once a day.
- Last Year Count Of Gifts - Calculates the total count of all the associated Gifts from last year where the Status Reason eq Processed and 'Return' does not eq 'Yes'. This calculation is not done automatically, it is using a power automate to update once a day.
- Last Year Value Of Gifts - List all the associated Gifts where the Status Reason eq Processed, 'Return' does not eq 'Yes', and 'Book Date' is eq to last year. Then Sum the 'Amount' of all these items and display in the 'Last Year Value of Gifts'. If 'Revised Amount' on a Gift contains data then the value from 'Revised' Amount will be used in the calculation instead of 'Amount'. This calculation is not done automatically, it is using a power automate to update once a day.
- Lifetime Count Of Gifts - Calculates the total count of all the associated Gifts where the Status Reason eq Processed and 'Return' does not eq 'Yes'.
- Lifetime Value Of Gifts - List all the associated Gifts where the Status Reason eq Processed, 'Return' does not eq 'Yes'. Then Sum the 'Amount' of all these items and display in the 'Lifetime Value of Gifts'. If 'Revised Amount' on a Gift contains data then the value from 'Revised' Amount will be used in the calculation instead of 'Amount'.
- Count Of Commitments - This calculates the count of all active Donor Commitments with a Status Reason of Active.
- Value Of Commitments - This calculates the amount of all active Donor Commitments with a Status Reason of Active.
Designation
- Largest Gift - Lookup value to the largest Gift where the Status Reason eq Processed and 'Return' does not eq 'Yes'.
- Largest Gift On - Shows the date on which the largest gift was created on, where the Status Reason eq Processed, and 'Return' does not eq 'Yes'.
- Largest Gift Amount - Looks at all the associated Gifts where the Status Reason eq Processed and 'Return' does not eq 'Yes'. Take the largest of the 'Amounts' and display that in the 'Largest Gift Amount'. If 'Revised Amount' on a Gift contains data then use the 'Revised Amount' for this gift instead of the 'Amount' field.
- Average Gift Amount - Calculates the average amount on all associated Gifts where the Status Reason eq Processed
- Last 6 Months Count Of Gifts - Calculates the total count of all the associated Gifts in the last 6 months where the Status Reason eq Processed and 'Return' does not eq 'Yes'. This calculation is not done automatically, it is using a power automate to update once a day.
- Last 6 Months Value Of Gifts - List all the associated Gifts where the Status Reason eq Processed, 'Return' does not eq 'Yes', and 'Book Date' is in the last 6 Months. Then Sum the 'Amount' of all these items and display in the 'Last 6 Months Value of Gifts'. If 'Revised Amount' on a Gift contains data then the value from 'Revised' Amount will be used in the calculation instead of 'Amount'. This calculation is not done automatically, it is using a power automate to update once a day.
- Current Year Count Of Gifts - Calculates the total count of all the associated Gifts in the current year where the Status Reason eq Processed and 'Return' does not eq 'Yes'. This calculation is not done automatically, it is using a power automate to update once a day.
- Current Year Value Of Gifts - List all the associated Gifts where the Status Reason eq Processed, 'Return' does not eq 'Yes', and 'Book Date' is inside of the current year. Then Sum the 'Amount' of all these items and display in the 'Current Year Value of Gifts'. If 'Revised Amount' on a Gift contains data then the value from 'Revised' Amount' will be used in the calculation instead of 'Amount'. This calculation is not done automatically, it is using a power automate to update once a day.
- Last Year Count Of Gifts - Calculates the total count of all the associated Gifts from last year where the Status Reason eq Processed and 'Return' does not eq 'Yes'. This calculation is not done automatically, it is using a power automate to update once a day.
- Last Year Value Of Gifts - List all the associated Gifts where the Status Reason eq Processed, 'Return' does not eq 'Yes', and 'Book Date' is eq to last year. Then Sum the 'Amount' of all these items and display in the 'Last Year Value of Gifts'. If 'Revised Amount' on a Gift contains data then the value from 'Revised' Amount will be used in the calculation instead of 'Amount'. This calculation is not done automatically, it is using a power automate to update once a day.
- Lifetime Count Of Gifts - Calculates the total count of all the associated Gifts where the Status Reason eq Processed and 'Return' does not eq 'Yes'.
- Lifetime Value Of Gifts - List all the associated Gifts where the Status Reason eq Processed, 'Return' does not eq 'Yes'. Then Sum the 'Amount' of all these items and display in the 'Lifetime Value of Gifts'. If 'Revised Amount' on a Gift contains data then the value from 'Revised' Amount will be used in the calculation instead of 'Amount'.
- Count Of Commitments - This calculates the count of all active Donor Commitments with a Status Reason of Active.
- Value Of Commitments - This calculates the amount of all active Donor Commitments with a Status Reason of Active.
Campaign
- Largest Gift - Lookup value to the largest Gift where the Status Reason eq Processed and 'Return' does not eq 'Yes'.
- Largest Gift On - Shows the date on which the largest gift was created on, where the Status Reason eq Processed, and 'Return' does not eq 'Yes'.
- Largest Gift Amount - Looks at all the associated Gifts where the Status Reason eq Processed and 'Return' does not eq 'Yes'. Take the largest of the 'Amounts' and display that in the 'Largest Gift Amount'. If 'Revised Amount' on a Gift contains data then use the 'Revised Amount' for this gift instead of the 'Amount' field.
- Average Gift Amount - Calculates the average amount on all associated Gifts where the Status Reason eq Processed
- Last 6 Months Count Of Gifts - Calculates the total count of all the associated Gifts in the last 6 months where the Status Reason eq Processed and 'Return' does not eq 'Yes'. This calculation is not done automatically, it is using a power automate to update once a day.
- Last 6 Months Value Of Gifts - List all the associated Gifts where the Status Reason eq Processed, 'Return' does not eq 'Yes', and 'Book Date' is in the last 6 Months. Then Sum the 'Amount' of all these items and display in the 'Last 6 Months Value of Gifts'. If 'Revised Amount' on a Gift contains data then the value from 'Revised' Amount will be used in the calculation instead of 'Amount'. This calculation is not done automatically, it is using a power automate to update once a day.
- Current Year Count Of Gifts - Calculates the total count of all the associated Gifts in the current year where the Status Reason eq Processed and 'Return' does not eq 'Yes'. This calculation is not done automatically, it is using a power automate to update once a day.
- Current Year Value Of Gifts - List all the associated Gifts where the Status Reason eq Processed, 'Return' does not eq 'Yes', and 'Book Date' is inside of the current year. Then Sum the 'Amount' of all these items and display in the 'Current Year Value of Gifts'. If 'Revised Amount' on a Gift contains data then the value from 'Revised' Amount' will be used in the calculation instead of 'Amount'. This calculation is not done automatically, it is using a power automate to update once a day.
- Last Year Count Of Gifts - Calculates the total count of all the associated Gifts from last year where the Status Reason eq Processed and 'Return' does not eq 'Yes'. This calculation is not done automatically, it is using a power automate to update once a day.
- Last Year Value Of Gifts - List all the associated Gifts where the Status Reason eq Processed, 'Return' does not eq 'Yes', and 'Book Date' is eq to last year. Then Sum the 'Amount' of all these items and display in the 'Last Year Value of Gifts'. If 'Revised Amount' on a Gift contains data then the value from 'Revised' Amount will be used in the calculation instead of 'Amount'. This calculation is not done automatically, it is using a power automate to update once a day.
- Lifetime Count Of Gifts - Calculates the total count of all the associated Gifts where the Status Reason eq Processed and 'Return' does not eq 'Yes'.
- Lifetime Value Of Gifts - List all the associated Gifts where the Status Reason eq Processed, 'Return' does not eq 'Yes'. Then Sum the 'Amount' of all these items and display in the 'Lifetime Value of Gifts'. If 'Revised Amount' on a Gift contains data then the value from 'Revised' Amount will be used in the calculation instead of 'Amount'.
- Count Of Commitments - This calculates the count of all active Donor Commitments with a Status Reason of Active.
- Value Of Commitments - This calculates the amount of all active Donor Commitments with a Status Reason of Active.
Appeal
- Largest Gift - Lookup value to the largest Gift where the Status Reason eq Processed and 'Return' does not eq 'Yes'.
- Largest Gift On - Shows the date on which the largest gift was created on, where the Status Reason eq Processed, and 'Return' does not eq 'Yes'.
- Largest Gift Amount - Looks at all the associated Gifts where the Status Reason eq Processed and 'Return' does not eq 'Yes'. Take the largest of the 'Amounts' and display that in the 'Largest Gift Amount'. If 'Revised Amount' on a Gift contains data then use the 'Revised Amount' for this gift instead of the 'Amount' field.
- Average Gift Amount - Calculates the average amount on all associated Gifts where the Status Reason eq Processed
- Last 6 Months Count Of Gifts - Calculates the total count of all the associated Gifts in the last 6 months where the Status Reason eq Processed and 'Return' does not eq 'Yes'. This calculation is not done automatically, it is using a power automate to update once a day.
- Last 6 Months Value Of Gifts - List all the associated Gifts where the Status Reason eq Processed, 'Return' does not eq 'Yes', and 'Book Date' is in the last 6 Months. Then Sum the 'Amount' of all these items and display in the 'Last 6 Months Value of Gifts'. If 'Revised Amount' on a Gift contains data then the value from 'Revised' Amount will be used in the calculation instead of 'Amount'. This calculation is not done automatically, it is using a power automate to update once a day.
- Current Year Count Of Gifts - Calculates the total count of all the associated Gifts in the current year where the Status Reason eq Processed and 'Return' does not eq 'Yes'. This calculation is not done automatically, it is using a power automate to update once a day.
- Current Year Value Of Gifts - List all the associated Gifts where the Status Reason eq Processed, 'Return' does not eq 'Yes', and 'Book Date' is inside of the current year. Then Sum the 'Amount' of all these items and display in the 'Current Year Value of Gifts'. If 'Revised Amount' on a Gift contains data then the value from 'Revised' Amount' will be used in the calculation instead of 'Amount'. This calculation is not done automatically, it is using a power automate to update once a day.
- Last Year Count Of Gifts - Calculates the total count of all the associated Gifts from last year where the Status Reason eq Processed and 'Return' does not eq 'Yes'. This calculation is not done automatically, it is using a power automate to update once a day.
- Last Year Value Of Gifts - List all the associated Gifts where the Status Reason eq Processed, 'Return' does not eq 'Yes', and 'Book Date' is eq to last year. Then Sum the 'Amount' of all these items and display in the 'Last Year Value of Gifts'. If 'Revised Amount' on a Gift contains data then the value from 'Revised' Amount will be used in the calculation instead of 'Amount'. This calculation is not done automatically, it is using a power automate to update once a day.
- Lifetime Count Of Gifts - Calculates the total count of all the associated Gifts where the Status Reason eq Processed and 'Return' does not eq 'Yes'.
- Lifetime Value Of Gifts - List all the associated Gifts where the Status Reason eq Processed, 'Return' does not eq 'Yes'. Then Sum the 'Amount' of all these items and display in the 'Lifetime Value of Gifts'. If 'Revised Amount' on a Gift contains data then the value from 'Revised' Amount will be used in the calculation instead of 'Amount'.
- Count Of Commitments - This calculates the count of all active Donor Commitments with a Status Reason of Active.
- Value Of Commitments - This calculates the amount of all active Donor Commitments with a Status Reason of Active.
Package
- Largest Gift - Lookup value to the largest Gift where the Status Reason eq Processed and 'Return' does not eq 'Yes'.
- Largest Gift On - Shows the date on which the largest gift was created on, where the Status Reason eq Processed, and 'Return' does not eq 'Yes'.
- Largest Gift Amount - Looks at all the associated Gifts where the Status Reason eq Processed and 'Return' does not eq 'Yes'. Take the largest of the 'Amounts' and display that in the 'Largest Gift Amount'. If 'Revised Amount' on a Gift contains data then use the 'Revised Amount' for this gift instead of the 'Amount' field.
- Average Gift Amount - Calculates the average amount on all associated Gifts where the Status Reason eq Processed
- Last 6 Months Count Of Gifts - Calculates the total count of all the associated Gifts in the last 6 months where the Status Reason eq Processed and 'Return' does not eq 'Yes'. This calculation is not done automatically, it is using a power automate to update once a day.
- Last 6 Months Value Of Gifts - List all the associated Gifts where the Status Reason eq Processed, 'Return' does not eq 'Yes', and 'Book Date' is in the last 6 Months. Then Sum the 'Amount' of all these items and display in the 'Last 6 Months Value of Gifts'. If 'Revised Amount' on a Gift contains data then the value from 'Revised' Amount will be used in the calculation instead of 'Amount'. This calculation is not done automatically, it is using a power automate to update once a day.
- Current Year Count Of Gifts - Calculates the total count of all the associated Gifts in the current year where the Status Reason eq Processed and 'Return' does not eq 'Yes'. This calculation is not done automatically, it is using a power automate to update once a day.
- Current Year Value Of Gifts - List all the associated Gifts where the Status Reason eq Processed, 'Return' does not eq 'Yes', and 'Book Date' is inside of the current year. Then Sum the 'Amount' of all these items and display in the 'Current Year Value of Gifts'. If 'Revised Amount' on a Gift contains data then the value from 'Revised' Amount' will be used in the calculation instead of 'Amount'. This calculation is not done automatically, it is using a power automate to update once a day.
- Last Year Count Of Gifts - Calculates the total count of all the associated Gifts from last year where the Status Reason eq Processed and 'Return' does not eq 'Yes'. This calculation is not done automatically, it is using a power automate to update once a day.
- Last Year Value Of Gifts - List all the associated Gifts where the Status Reason eq Processed, 'Return' does not eq 'Yes', and 'Book Date' is eq to last year. Then Sum the 'Amount' of all these items and display in the 'Last Year Value of Gifts'. If 'Revised Amount' on a Gift contains data then the value from 'Revised' Amount will be used in the calculation instead of 'Amount'. This calculation is not done automatically, it is using a power automate to update once a day.
- Lifetime Count Of Gifts - Calculates the total count of all the associated Gifts where the Status Reason eq Processed and 'Return' does not eq 'Yes'.
- Lifetime Value Of Gifts - List all the associated Gifts where the Status Reason eq Processed, 'Return' does not eq 'Yes'. Then Sum the 'Amount' of all these items and display in the 'Lifetime Value of Gifts'. If 'Revised Amount' on a Gift contains data then the value from 'Revised' Amount will be used in the calculation instead of 'Amount'.
- Count Of Commitments - This calculates the count of all active Donor Commitments with a Status Reason of Active.
- Value Of Commitments - This calculates the amount of all active Donor Commitments with a Status Reason of Active.
Technical
Most calculations are performed by asyncronous plugins (meaning it would typically be updated in a second or two after creating/updating/deleting a record like gift used as the source. On this event, it will recalculate all the affected figures on all related entities.
Here's a technical list of all the plugin steps, and the queries used to get the values, and the destination fields where these are written to:
[
{
"name": "Klevr.Feature.Plugins.SqlCalculator: Retrieve of klevr_package",
"configuration": {
"Fields": [
{
"Field": "klevr_last6monthsvalueofgifts",
"Type": "Money"
},
{
"Field": "klevr_last6monthscountofgifts",
"Type": "int"
},
{
"Field": "klevr_currentyearvalueofgifts",
"Type": "Money"
},
{
"Field": "klevr_currentyearcountofgifts",
"Type": "int"
},
{
"Field": "klevr_lastyearvalueofgifts",
"Type": "Money"
},
{
"Field": "klevr_lastyearcountofgifts",
"Type": "int"
}
],
"Query": "declare @ty as int = year(getdate()); declare @m6 as date = dateadd(m, -6, getdate()); select sum(case year(klevr_bookdate) when @ty then 1 else 0 end) as 'klevr_currentyearcountofgifts',sum(case year(klevr_bookdate) when @ty then coalesce(klevr_revisedamount, klevr_amount,0) else 0 end) as 'klevr_currentyearvalueofgifts',sum(case year(klevr_bookdate) when @ty-1 then 1 else 0 end) as 'klevr_lastyearcountofgifts',sum(case year(klevr_bookdate) when @ty-1 then coalesce(klevr_revisedamount, klevr_amount,0) else 0 end) as 'klevr_lastyearvalueofgifts',sum(case when klevr_bookdate >= @m6 then 1 else 0 end) as 'klevr_last6monthscountofgifts',sum(case when klevr_bookdate >= @m6 then coalesce(klevr_revisedamount, klevr_amount,0) else 0 end) as 'klevr_last6monthsvalueofgifts'from klevr_gift where klevr_packageid = {{klevr_packageid}} and statuscode = 699960001 and klevr_return <> 1"
},
"filteringattributes": null,
"primaryobjecttypecode": "klevr_package",
"sdkmessagefilterid": {
"sdkmessagefilterid": "75c8e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_package"
},
"sdkmessageprocessingstepid": "abe0d9d8-2cfd-ef11-bae3-6045bd3d8fbd"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: ValueOfDesignationCredits - DonorCommitment - Create",
"configuration": [
{
"Path": "klevr_donorcommitmentid.klevr_giftsreceived",
"TargetEntity": "klevr_donorcommitment",
"Query": "select '' as etn, 'money' as attributetype, sum(klevr_amount) as result from klevr_designationcredit where klevr_donorcommitmentid = {{klevr_donorcommitmentid}}"
},
{
"Path": "klevr_donorcommitmentid.klevr_giftsoutstanding",
"TargetEntity": "klevr_donorcommitment",
"Query": "select '' as etn, 'money' as attributetype, max(comm.klevr_totalamount) - sum(d.klevr_amount) as result from klevr_designationcredit d inner join klevr_donorcommitment comm on d.klevr_donorcommitmentid = comm.klevr_donorcommitmentid where d.klevr_donorcommitmentid = {{klevr_donorcommitmentid}}"
}
],
"filteringattributes": "klevr_amount,klevr_donorcommitmentid,statuscode",
"primaryobjecttypecode": "klevr_designationcredit",
"sdkmessagefilterid": {
"sdkmessagefilterid": "ec82f1e7-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_designationcredit"
},
"sdkmessageprocessingstepid": "2ed688f4-ee68-f011-bec2-6045bd3d8fbd"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: ValueOfDesignationCredits - DonorCommitment - Update",
"configuration": [
{
"Path": "klevr_donorcommitmentid.klevr_giftsreceived",
"TargetEntity": "klevr_donorcommitment",
"Query": "select '' as etn, 'money' as attributetype, sum(klevr_amount) as result from klevr_designationcredit where klevr_donorcommitmentid = {{klevr_donorcommitmentid}}"
},
{
"Path": "klevr_donorcommitmentid.klevr_giftsoutstanding",
"TargetEntity": "klevr_donorcommitment",
"Query": "select '' as etn, 'money' as attributetype, max(comm.klevr_totalamount) - sum(d.klevr_amount) as result from klevr_designationcredit d inner join klevr_donorcommitment comm on d.klevr_donorcommitmentid = comm.klevr_donorcommitmentid where d.klevr_donorcommitmentid = {{klevr_donorcommitmentid}}"
}
],
"filteringattributes": "klevr_amount,klevr_donorcommitmentid,statuscode",
"primaryobjecttypecode": "klevr_designationcredit",
"sdkmessagefilterid": {
"sdkmessagefilterid": "f082f1e7-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_designationcredit"
},
"sdkmessageprocessingstepid": "1d5f71fc-ef68-f011-bec2-6045bd3d8fbd"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: ValueOfDesignationCredits - DonorCommitment - Delete",
"configuration": [
{
"Path": "klevr_donorcommitmentid.klevr_giftsreceived",
"TargetEntity": "klevr_donorcommitment",
"Query": "select '' as etn, 'money' as attributetype, sum(klevr_amount) as result from klevr_designationcredit where klevr_donorcommitmentid = {{klevr_donorcommitmentid}}"
},
{
"Path": "klevr_donorcommitmentid.klevr_giftsoutstanding",
"TargetEntity": "klevr_donorcommitment",
"Query": "select '' as etn, 'money' as attributetype, max(comm.klevr_totalamount) - sum(d.klevr_amount) as result from klevr_designationcredit d inner join klevr_donorcommitment comm on d.klevr_donorcommitmentid = comm.klevr_donorcommitmentid where d.klevr_donorcommitmentid = {{klevr_donorcommitmentid}}"
}
],
"filteringattributes": null,
"primaryobjecttypecode": "klevr_designationcredit",
"sdkmessagefilterid": {
"sdkmessagefilterid": "ed82f1e7-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_designationcredit"
},
"sdkmessageprocessingstepid": "bdf0a027-f068-f011-bec2-6045bd3d8fbd"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: SoftCreditToValue - Account,Contact - Create",
"configuration": [
{
"Path": "klevr_softcredittoid.klevr_softcreditvalueofgifts",
"TargetEntity": "account,contact",
"Query": "select '' as etn, 'money' as attributetype, sum(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_softcredittoid = {{klevr_softcredittoid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "klevr_amount,statuscode,klevr_softcredittoid,klevr_revisedamount",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3cc7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "a3f2b039-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: AverageGiftAmount - Account,Contact - Update",
"configuration": [
{
"Path": "klevr_customerid.klevr_averagegiftamount",
"TargetEntity": "account,contact",
"Query": "select '' as etn, 'money' as attributetype, avg(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_customerid.klevr_largestgiftamount",
"TargetEntity": "account,contact",
"Query": "select top 1 '' as etn, 'money' as attributetype, coalesce(klevr_revisedamount, klevr_amount,0) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_customerid.klevr_largestgifton",
"TargetEntity": "account,contact",
"Query": "select top 1 '' as etn, 'datetime' as attributetype, coalesce(klevr_bookdate, createdon) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_customerid.klevr_lifetimevalueofgifts",
"TargetEntity": "account,contact",
"Query": "select '' as etn, 'money' as attributetype, sum(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_customerid,klevr_amount,klevr_revisedamount,klevr_bookdate",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "40c7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "abf2b039-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: AverageGiftAmount - Account,Contact - Delete",
"configuration": [
{
"Path": "klevr_customerid.klevr_averagegiftamount",
"TargetEntity": "account,contact",
"Query": "select '' as etn, 'money' as attributetype, avg(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_designationid.klevr_averagegiftamount",
"TargetEntity": "klevr_designation",
"Query": "select '' as etn, 'money' as attributetype, avg(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_designationid = {{klevr_designationid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_originatingcampaignid.klevr_averagegiftamount",
"TargetEntity": "campaign",
"Query": "select '' as etn, 'money' as attributetype, avg(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_originatingcampaignid = {{klevr_originatingcampaignid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_appealid.klevr_averagegiftamount",
"TargetEntity": "klevr_appeal",
"Query": "select '' as etn, 'money' as attributetype, avg(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_appealid = {{klevr_appealid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_packageid.klevr_averagegiftamount",
"TargetEntity": "klevr_package",
"Query": "select '' as etn, 'money' as attributetype, avg(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_packageid = {{klevr_packageid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_customerid.klevr_firstgiftamount",
"TargetEntity": "account,contact",
"Query": "select top 1 '' as etn, 'money' as attributetype, coalesce(klevr_revisedamount, klevr_amount,0) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_bookdate, createdon) asc"
},
{
"Path": "klevr_customerid.klevr_firstgiftid",
"TargetEntity": "account,contact",
"Query": "select top 1 'klevr_gift' as etn, 'entityreference' as attributetype, klevr_giftid as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_bookdate, createdon) asc"
},
{
"Path": "klevr_customerid.klevr_firstgifton",
"TargetEntity": "account,contact",
"Query": "select top 1 '' as etn, 'datetime' as attributetype, coalesce(klevr_bookdate, createdon) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_bookdate, createdon) asc"
},
{
"Path": "klevr_attributedtoid.klevr_influencedcountofgifts",
"TargetEntity": "account,contact",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_giftid) as result from klevr_gift where klevr_attributedtoid = {{klevr_attributedtoid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_customerid.klevr_influencedvalueofgifts",
"TargetEntity": "account,contact",
"Query": "select '' as etn, 'money' as attributetype, sum(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_attributedtoid = {{klevr_attributedtoid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_customerid.klevr_largestgiftamount",
"TargetEntity": "account,contact",
"Query": "select top 1 '' as etn, 'money' as attributetype, coalesce(klevr_revisedamount, klevr_amount,0) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_designationid.klevr_largestgiftamount",
"TargetEntity": "klevr_designation",
"Query": "select top 1 '' as etn, 'money' as attributetype, coalesce(klevr_revisedamount, klevr_amount,0) as result from klevr_gift where klevr_designationid = {{klevr_designationid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_originatingcampaignid.klevr_largestgiftamount",
"TargetEntity": "campaign",
"Query": "select top 1 '' as etn, 'money' as attributetype, coalesce(klevr_revisedamount, klevr_amount,0) as result from klevr_gift where klevr_originatingcampaignid = {{klevr_originatingcampaignid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_appealid.klevr_largestgiftamount",
"TargetEntity": "klevr_appeal",
"Query": "select top 1 '' as etn, 'money' as attributetype, coalesce(klevr_revisedamount, klevr_amount,0) as result from klevr_gift where klevr_appealid = {{klevr_appealid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_packageid.klevr_largestgiftamount",
"TargetEntity": "klevr_package",
"Query": "select top 1 '' as etn, 'money' as attributetype, coalesce(klevr_revisedamount, klevr_amount,0) as result from klevr_gift where klevr_packageid = {{klevr_packageid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_customerid.klevr_largestgiftid",
"TargetEntity": "account,contact",
"Query": "select top 1 'klevr_gift' as etn, 'entityreference' as attributetype, klevr_giftid as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_designationid.klevr_largestgiftid",
"TargetEntity": "klevr_designation",
"Query": "select top 1 'klevr_gift' as etn, 'entityreference' as attributetype, klevr_giftid as result from klevr_gift where klevr_designationid = {{klevr_designationid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_originatingcampaignid.klevr_largestgiftid",
"TargetEntity": "campaign",
"Query": "select top 1 'klevr_gift' as etn, 'entityreference' as attributetype, klevr_giftid as result from klevr_gift where klevr_originatingcampaignid = {{klevr_originatingcampaignid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_appealid.klevr_largestgiftid",
"TargetEntity": "klevr_appeal",
"Query": "select top 1 'klevr_gift' as etn, 'entityreference' as attributetype, klevr_giftid as result from klevr_gift where klevr_appealid = {{klevr_appealid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_packageid.klevr_largestgiftid",
"TargetEntity": "klevr_package",
"Query": "select top 1 'klevr_gift' as etn, 'entityreference' as attributetype, klevr_giftid as result from klevr_gift where klevr_packageid = {{klevr_packageid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_customerid.klevr_largestgifton",
"TargetEntity": "account,contact",
"Query": "select top 1 '' as etn, 'datetime' as attributetype, coalesce(klevr_bookdate, createdon) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_designationid.klevr_largestgifton",
"TargetEntity": "klevr_designation",
"Query": "select top 1 '' as etn, 'datetime' as attributetype, coalesce(klevr_bookdate, createdon) as result from klevr_gift where klevr_designationid = {{klevr_designationid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_originatingcampaignid.klevr_largestgifton",
"TargetEntity": "campaign",
"Query": "select top 1 '' as etn, 'datetime' as attributetype, coalesce(klevr_bookdate, createdon) as result from klevr_gift where klevr_originatingcampaignid = {{klevr_originatingcampaignid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_appealid.klevr_largestgifton",
"TargetEntity": "klevr_appeal",
"Query": "select top 1 '' as etn, 'datetime' as attributetype, coalesce(klevr_bookdate, createdon) as result from klevr_gift where klevr_appealid = {{klevr_appealid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_packageid.klevr_largestgifton",
"TargetEntity": "klevr_package",
"Query": "select top 1 '' as etn, 'datetime' as attributetype, coalesce(klevr_bookdate, createdon) as result from klevr_gift where klevr_packageid = {{klevr_packageid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_customerid.klevr_lastgiftamount",
"TargetEntity": "account,contact",
"Query": "select top 1 '' as etn, 'money' as attributetype, coalesce(klevr_revisedamount, klevr_amount,0) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_bookdate, createdon) desc"
},
{
"Path": "klevr_customerid.klevr_lastgiftid",
"TargetEntity": "account,contact",
"Query": "select top 1 'klevr_gift' as etn, 'entityreference' as attributetype, klevr_giftid as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_bookdate, createdon) desc"
},
{
"Path": "klevr_customerid.klevr_lastgifton",
"TargetEntity": "account,contact",
"Query": "select top 1 '' as etn, 'datetime' as attributetype, coalesce(klevr_bookdate, createdon) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_bookdate, createdon) desc"
},
{
"Path": "klevr_customerid.klevr_lifetimecountofgifts",
"TargetEntity": "account,contact",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_giftid) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_designationid.klevr_lifetimecountofgifts",
"TargetEntity": "klevr_designation",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_giftid) as result from klevr_gift where klevr_designationid = {{klevr_designationid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_originatingcampaignid.klevr_lifetimecountofgifts",
"TargetEntity": "campaign",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_giftid) as result from klevr_gift where klevr_originatingcampaignid = {{klevr_originatingcampaignid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_appealid.klevr_lifetimecountofgifts",
"TargetEntity": "klevr_appeal",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_giftid) as result from klevr_gift where klevr_appealid = {{klevr_appealid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_packageid.klevr_lifetimecountofgifts",
"TargetEntity": "klevr_package",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_giftid) as result from klevr_gift where klevr_packageid = {{klevr_packageid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_customerid.klevr_lifetimevalueofgifts",
"TargetEntity": "account,contact",
"Query": "select '' as etn, 'money' as attributetype, sum(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_designationid.klevr_lifetimevalueofgifts",
"TargetEntity": "klevr_designation",
"Query": "select '' as etn, 'money' as attributetype, sum(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_designationid = {{klevr_designationid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_originatingcampaignid.klevr_lifetimevalueofgifts",
"TargetEntity": "campaign",
"Query": "select '' as etn, 'money' as attributetype, sum(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_originatingcampaignid = {{klevr_originatingcampaignid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_appealid.klevr_lifetimevalueofgifts",
"TargetEntity": "klevr_appeal",
"Query": "select '' as etn, 'money' as attributetype, sum(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_appealid = {{klevr_appealid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_packageid.klevr_lifetimevalueofgifts",
"TargetEntity": "klevr_package",
"Query": "select '' as etn, 'money' as attributetype, sum(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_packageid = {{klevr_packageid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_softcredittoid.klevr_softcreditcountofgifts",
"TargetEntity": "account,contact",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_giftid) as result from klevr_gift where klevr_softcredittoid = {{klevr_softcredittoid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_softcredittoid.klevr_softcreditvalueofgifts",
"TargetEntity": "account,contact",
"Query": "select '' as etn, 'money' as attributetype, sum(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_softcredittoid = {{klevr_softcredittoid}} and statuscode = 699960001 and klevr_return <> 1 and klevr_return <> 1"
},
{
"Path": "klevr_solicitedbyid.klevr_solicitedcountofgifts",
"TargetEntity": "contact",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_giftid) as result from klevr_gift where klevr_solicitedbyid = {{klevr_solicitedbyid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_solicitedbyid.klevr_solicitedvalueofgifts",
"TargetEntity": "contact",
"Query": "select '' as etn, 'money' as attributetype, sum(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_solicitedbyid = {{klevr_solicitedbyid}} and statuscode = 699960001 and klevr_return <> 1 and klevr_return <> 1"
}
],
"filteringattributes": null,
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3dc7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "aef2b039-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: LifetimeCountOfGifts - klevr_appeal - Create",
"configuration": [
{
"Path": "klevr_appealid.klevr_lifetimecountofgifts",
"TargetEntity": "klevr_appeal",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_giftid) as result from klevr_gift where klevr_appealid = {{klevr_appealid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_appealid",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3cc7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "b1f2b039-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: AverageGiftAmount - klevr_designation - Update",
"configuration": [
{
"Path": "klevr_designationid.klevr_averagegiftamount",
"TargetEntity": "klevr_designation",
"Query": "select '' as etn, 'money' as attributetype, avg(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_designationid = {{klevr_designationid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_designationid.klevr_largestgiftamount",
"TargetEntity": "klevr_designation",
"Query": "select top 1 '' as etn, 'money' as attributetype, coalesce(klevr_revisedamount, klevr_amount,0) as result from klevr_gift where klevr_designationid = {{klevr_designationid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_designationid.klevr_largestgiftid",
"TargetEntity": "klevr_designation",
"Query": "select top 1 'klevr_gift' as etn, 'entityreference' as attributetype, klevr_giftid as result from klevr_gift where klevr_designationid = {{klevr_designationid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_designationid.klevr_largestgifton",
"TargetEntity": "klevr_designation",
"Query": "select top 1 '' as etn, 'datetime' as attributetype, coalesce(klevr_bookdate, createdon) as result from klevr_gift where klevr_designationid = {{klevr_designationid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_designationid.klevr_lifetimevalueofgifts",
"TargetEntity": "klevr_designation",
"Query": "select '' as etn, 'money' as attributetype, sum(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_designationid = {{klevr_designationid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_designationid,klevr_amount,klevr_revisedamount,klevr_bookdate",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "40c7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "b4f2b039-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: AverageGiftAmount - klevr_appeal - Create",
"configuration": [
{
"Path": "klevr_appealid.klevr_averagegiftamount",
"TargetEntity": "klevr_appeal",
"Query": "select '' as etn, 'money' as attributetype, avg(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_appealid = {{klevr_appealid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_appealid.klevr_largestgiftamount",
"TargetEntity": "klevr_appeal",
"Query": "select top 1 '' as etn, 'money' as attributetype, coalesce(klevr_revisedamount, klevr_amount,0) as result from klevr_gift where klevr_appealid = {{klevr_appealid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_appealid.klevr_largestgiftid",
"TargetEntity": "klevr_appeal",
"Query": "select top 1 'klevr_gift' as etn, 'entityreference' as attributetype, klevr_giftid as result from klevr_gift where klevr_appealid = {{klevr_appealid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_appealid.klevr_largestgifton",
"TargetEntity": "klevr_appeal",
"Query": "select top 1 '' as etn, 'datetime' as attributetype, coalesce(klevr_bookdate, createdon) as result from klevr_gift where klevr_appealid = {{klevr_appealid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_appealid.klevr_lifetimevalueofgifts",
"TargetEntity": "klevr_appeal",
"Query": "select '' as etn, 'money' as attributetype, sum(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_appealid = {{klevr_appealid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_appealid,klevr_amount,klevr_revisedamount,klevr_bookdate",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3cc7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "b7f2b039-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: AverageGiftAmount - campaign - Update",
"configuration": [
{
"Path": "klevr_originatingcampaignid.klevr_averagegiftamount",
"TargetEntity": "campaign",
"Query": "select '' as etn, 'money' as attributetype, avg(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_originatingcampaignid = {{klevr_originatingcampaignid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_originatingcampaignid.klevr_largestgiftamount",
"TargetEntity": "campaign",
"Query": "select top 1 '' as etn, 'money' as attributetype, coalesce(klevr_revisedamount, klevr_amount,0) as result from klevr_gift where klevr_originatingcampaignid = {{klevr_originatingcampaignid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_originatingcampaignid.klevr_largestgiftid",
"TargetEntity": "campaign",
"Query": "select top 1 'klevr_gift' as etn, 'entityreference' as attributetype, klevr_giftid as result from klevr_gift where klevr_originatingcampaignid = {{klevr_originatingcampaignid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_originatingcampaignid.klevr_largestgifton",
"TargetEntity": "campaign",
"Query": "select top 1 '' as etn, 'datetime' as attributetype, coalesce(klevr_bookdate, createdon) as result from klevr_gift where klevr_originatingcampaignid = {{klevr_originatingcampaignid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_originatingcampaignid.klevr_lifetimevalueofgifts",
"TargetEntity": "campaign",
"Query": "select '' as etn, 'money' as attributetype, sum(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_originatingcampaignid = {{klevr_originatingcampaignid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_originatingcampaignid,klevr_amount,klevr_revisedamount,klevr_bookdate",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "40c7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "baf2b039-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: AverageGiftAmount - klevr_appeal - Update",
"configuration": [
{
"Path": "klevr_appealid.klevr_averagegiftamount",
"TargetEntity": "klevr_appeal",
"Query": "select '' as etn, 'money' as attributetype, avg(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_appealid = {{klevr_appealid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_appealid.klevr_largestgiftamount",
"TargetEntity": "klevr_appeal",
"Query": "select top 1 '' as etn, 'money' as attributetype, coalesce(klevr_revisedamount, klevr_amount,0) as result from klevr_gift where klevr_appealid = {{klevr_appealid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_appealid.klevr_largestgiftid",
"TargetEntity": "klevr_appeal",
"Query": "select top 1 'klevr_gift' as etn, 'entityreference' as attributetype, klevr_giftid as result from klevr_gift where klevr_appealid = {{klevr_appealid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_appealid.klevr_largestgifton",
"TargetEntity": "klevr_appeal",
"Query": "select top 1 '' as etn, 'datetime' as attributetype, coalesce(klevr_bookdate, createdon) as result from klevr_gift where klevr_appealid = {{klevr_appealid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_appealid.klevr_lifetimevalueofgifts",
"TargetEntity": "klevr_appeal",
"Query": "select '' as etn, 'money' as attributetype, sum(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_appealid = {{klevr_appealid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_appealid,klevr_amount,klevr_revisedamount,klevr_bookdate",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "40c7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "bdf2b039-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: AverageGiftAmount - klevr_package - Update",
"configuration": [
{
"Path": "klevr_packageid.klevr_averagegiftamount",
"TargetEntity": "klevr_package",
"Query": "select '' as etn, 'money' as attributetype, avg(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_packageid = {{klevr_packageid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_packageid.klevr_largestgiftamount",
"TargetEntity": "klevr_package",
"Query": "select top 1 '' as etn, 'money' as attributetype, coalesce(klevr_revisedamount, klevr_amount,0) as result from klevr_gift where klevr_packageid = {{klevr_packageid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_packageid.klevr_largestgiftid",
"TargetEntity": "klevr_package",
"Query": "select top 1 'klevr_gift' as etn, 'entityreference' as attributetype, klevr_giftid as result from klevr_gift where klevr_packageid = {{klevr_packageid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_packageid.klevr_largestgifton",
"TargetEntity": "klevr_package",
"Query": "select top 1 '' as etn, 'datetime' as attributetype, coalesce(klevr_bookdate, createdon) as result from klevr_gift where klevr_packageid = {{klevr_packageid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_packageid.klevr_lifetimevalueofgifts",
"TargetEntity": "klevr_package",
"Query": "select '' as etn, 'money' as attributetype, sum(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_packageid = {{klevr_packageid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_packageid,klevr_amount,klevr_revisedamount,klevr_bookdate",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "40c7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "c0f2b039-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: FirstGiftAmount - Account,Contact - Update",
"configuration": [
{
"Path": "klevr_customerid.klevr_firstgiftamount",
"TargetEntity": "account,contact",
"Query": "select top 1 '' as etn, 'money' as attributetype, coalesce(klevr_revisedamount, klevr_amount,0) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_bookdate, createdon) asc"
},
{
"Path": "klevr_customerid.klevr_firstgiftid",
"TargetEntity": "account,contact",
"Query": "select top 1 'klevr_gift' as etn, 'entityreference' as attributetype, klevr_giftid as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_bookdate, createdon) asc"
},
{
"Path": "klevr_customerid.klevr_firstgifton",
"TargetEntity": "account,contact",
"Query": "select top 1 '' as etn, 'datetime' as attributetype, coalesce(klevr_bookdate, createdon) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_bookdate, createdon) asc"
},
{
"Path": "klevr_customerid.klevr_largestgiftid",
"TargetEntity": "account,contact",
"Query": "select top 1 'klevr_gift' as etn, 'entityreference' as attributetype, klevr_giftid as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_customerid.klevr_lastgiftamount",
"TargetEntity": "account,contact",
"Query": "select top 1 '' as etn, 'money' as attributetype, coalesce(klevr_revisedamount, klevr_amount,0) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_bookdate, createdon) desc"
},
{
"Path": "klevr_customerid.klevr_lastgiftid",
"TargetEntity": "account,contact",
"Query": "select top 1 'klevr_gift' as etn, 'entityreference' as attributetype, klevr_giftid as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_bookdate, createdon) desc"
},
{
"Path": "klevr_customerid.klevr_lastgifton",
"TargetEntity": "account,contact",
"Query": "select top 1 '' as etn, 'datetime' as attributetype, coalesce(klevr_bookdate, createdon) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_bookdate, createdon) desc"
},
{
"Path": "klevr_customerid.klevr_lifetimecountofgifts",
"TargetEntity": "account,contact",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_giftid) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_customerid,klevr_bookdate",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "40c7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "c3f2b039-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: InfluencedCountOfGifts - Account,Contact - Create",
"configuration": [
{
"Path": "klevr_attributedtoid.klevr_influencedcountofgifts",
"TargetEntity": "account,contact",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_giftid) as result from klevr_gift where klevr_attributedtoid = {{klevr_attributedtoid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_attributedtoid",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3cc7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "c6f2b039-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: InfluencedValueOfGifts - Account,Contact - Create",
"configuration": [
{
"Path": "klevr_customerid.klevr_influencedvalueofgifts",
"TargetEntity": "account,contact",
"Query": "select '' as etn, 'money' as attributetype, sum(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_attributedtoid = {{klevr_attributedtoid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_attributedtoid,klevr_amount,klevr_revisedamount",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3cc7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "c9f2b039-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: InfluencedCountOfGifts - Account,Contact - Update",
"configuration": [
{
"Path": "klevr_attributedtoid.klevr_influencedcountofgifts",
"TargetEntity": "account,contact",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_giftid) as result from klevr_gift where klevr_attributedtoid = {{klevr_attributedtoid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_attributedtoid",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "40c7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "d1f2b039-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: ValueOfCommitments - Contact - Create",
"configuration": [
{
"Path": "klevr_customerid.klevr_valueofcommitments",
"TargetEntity": "contact",
"Query": "select '' as etn, 'money' as attributetype, sum(klevr_totalamount) as result from klevr_donorcommitment where klevr_customerid = {{klevr_customerid}} and statuscode <> 844060001"
},
{
"Path": "klevr_customerid.klevr_valueofcommitments",
"TargetEntity": "account",
"Query": "select '' as etn, 'money' as attributetype, sum(klevr_totalamount) as result from klevr_donorcommitment where klevr_customerid = {{klevr_customerid}} and statuscode <> 844060001"
}
],
"filteringattributes": "statuscode,klevr_customerid,klevr_totalamount",
"primaryobjecttypecode": "klevr_donorcommitment",
"sdkmessagefilterid": {
"sdkmessagefilterid": "2f83f1e7-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_donorcommitment"
},
"sdkmessageprocessingstepid": "eecab23f-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: ValueOfCommitments - Contact - Update",
"configuration": [
{
"Path": "klevr_customerid.klevr_valueofcommitments",
"TargetEntity": "contact",
"Query": "select '' as etn, 'money' as attributetype, sum(klevr_totalamount) as result from klevr_donorcommitment where klevr_customerid = {{klevr_customerid}} and statuscode <> 844060001"
},
{
"Path": "klevr_customerid.klevr_valueofcommitments",
"TargetEntity": "account",
"Query": "select '' as etn, 'money' as attributetype, sum(klevr_totalamount) as result from klevr_donorcommitment where klevr_customerid = {{klevr_customerid}} and statuscode <> 844060001"
}
],
"filteringattributes": "statuscode,klevr_customerid,klevr_totalamount",
"primaryobjecttypecode": "klevr_donorcommitment",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3383f1e7-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_donorcommitment"
},
"sdkmessageprocessingstepid": "f5cab23f-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: ValueOfCommitments - Contact - Delete",
"configuration": [
{
"Path": "klevr_customerid.klevr_valueofcommitments",
"TargetEntity": "contact",
"Query": "select '' as etn, 'money' as attributetype, sum(klevr_totalamount) as result from klevr_donorcommitment where klevr_customerid = {{klevr_customerid}} and statuscode <> 844060001"
},
{
"Path": "klevr_customerid.klevr_countofcommitments",
"TargetEntity": "contact",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_donorcommitmentid) as result from klevr_donorcommitment where klevr_customerid = {{klevr_customerid}} and statuscode <> 844060001"
},
{
"Path": "klevr_customerid.klevr_valueofcommitments",
"TargetEntity": "account",
"Query": "select '' as etn, 'money' as attributetype, sum(klevr_totalamount) as result from klevr_donorcommitment where klevr_customerid = {{klevr_customerid}} and statuscode <> 844060001"
},
{
"Path": "klevr_customerid.klevr_countofcommitments",
"TargetEntity": "account",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_donorcommitmentid) as result from klevr_donorcommitment where klevr_customerid = {{klevr_customerid}} and statuscode <> 844060001"
},
{
"Path": "klevr_designationid.klevr_valueofcommitments",
"TargetEntity": "klevr_designation",
"Query": "select '' as etn, 'money' as attributetype, sum(klevr_totalamount) as result from klevr_donorcommitment where klevr_designationid = {{klevr_designationid}} and statuscode <> 844060001"
},
{
"Path": "klevr_designationid.klevr_countofcommitments",
"TargetEntity": "klevr_designation",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_donorcommitmentid) as result from klevr_donorcommitment where klevr_designationid = {{klevr_designationid}} and statuscode <> 844060001"
},
{
"Path": "klevr_originatingcampaignid.klevr_valueofcommitments",
"TargetEntity": "campaign",
"Query": "select '' as etn, 'money' as attributetype, sum(klevr_totalamount) as result from klevr_donorcommitment where klevr_commitment_campaignid = {{klevr_commitment_campaignid}} and statuscode <> 844060001"
},
{
"Path": "klevr_originatingcampaignid.klevr_countofcommitments",
"TargetEntity": "campaign",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_donorcommitmentid) as result from klevr_donorcommitment where klevr_commitment_campaignid = {{klevr_commitment_campaignid}} and statuscode <> 844060001"
},
{
"Path": "klevr_appealid.klevr_valueofcommitments",
"TargetEntity": "klevr_appeal",
"Query": "select '' as etn, 'money' as attributetype, sum(klevr_totalamount) as result from klevr_donorcommitment where klevr_appealid = {{klevr_appealid}} and statuscode <> 844060001"
},
{
"Path": "klevr_appealid.klevr_countofcommitments",
"TargetEntity": "klevr_appeal",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_donorcommitmentid) as result from klevr_donorcommitment where klevr_appealid = {{klevr_appealid}} and statuscode <> 844060001"
},
{
"Path": "klevr_packageid.klevr_valueofcommitments",
"TargetEntity": "klevr_package",
"Query": "select '' as etn, 'money' as attributetype, sum(klevr_totalamount) as result from klevr_donorcommitment where klevr_packageid = {{klevr_packageid}} and statuscode <> 844060001"
},
{
"Path": "klevr_packageid.klevr_countofcommitments",
"TargetEntity": "klevr_package",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_donorcommitmentid) as result from klevr_donorcommitment where klevr_packageid = {{klevr_packageid}} and statuscode <> 844060001"
},
{
"Path": "klevr_pledgeid.klevr_giftsoutstanding",
"TargetEntity": "klevr_pledge",
"Query": "select '' as etn, 'money' as attributetype, max(p.klevr_amount) - sum(d.klevr_giftsreceived) as result from klevr_donorcommitment d inner join klevr_pledge p on d.klevr_pledgeid = p.klevr_pledgeid where d.klevr_pledgeid = {{klevr_pledgeid}}"
},
{
"Path": "klevr_pledgeid.klevr_giftsreceived",
"TargetEntity": "klevr_pledge",
"Query": "select '' as etn, 'money' as attributetype, sum(d.klevr_giftsreceived) as result from klevr_donorcommitment d where d.klevr_pledgeid = {{klevr_pledgeid}}"
}
],
"filteringattributes": null,
"primaryobjecttypecode": "klevr_donorcommitment",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3083f1e7-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_donorcommitment"
},
"sdkmessageprocessingstepid": "f8cab23f-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: FirstGiftAmount - Account,Contact - Create",
"configuration": [
{
"Path": "klevr_customerid.klevr_firstgiftamount",
"TargetEntity": "account,contact",
"Query": "select top 1 '' as etn, 'money' as attributetype, coalesce(klevr_revisedamount, klevr_amount,0) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_bookdate, createdon) asc"
},
{
"Path": "klevr_customerid.klevr_firstgiftid",
"TargetEntity": "account,contact",
"Query": "select top 1 'klevr_gift' as etn, 'entityreference' as attributetype, klevr_giftid as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_bookdate, createdon) asc"
},
{
"Path": "klevr_customerid.klevr_firstgifton",
"TargetEntity": "account,contact",
"Query": "select top 1 '' as etn, 'datetime' as attributetype, coalesce(klevr_bookdate, createdon) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_bookdate, createdon) asc"
},
{
"Path": "klevr_customerid.klevr_largestgiftid",
"TargetEntity": "account,contact",
"Query": "select top 1 'klevr_gift' as etn, 'entityreference' as attributetype, klevr_giftid as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_customerid.klevr_lastgiftamount",
"TargetEntity": "account,contact",
"Query": "select top 1 '' as etn, 'money' as attributetype, coalesce(klevr_revisedamount, klevr_amount,0) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_bookdate, createdon) desc"
},
{
"Path": "klevr_customerid.klevr_lastgiftid",
"TargetEntity": "account,contact",
"Query": "select top 1 'klevr_gift' as etn, 'entityreference' as attributetype, klevr_giftid as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_bookdate, createdon) desc"
},
{
"Path": "klevr_customerid.klevr_lastgifton",
"TargetEntity": "account,contact",
"Query": "select top 1 '' as etn, 'datetime' as attributetype, coalesce(klevr_bookdate, createdon) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_bookdate, createdon) desc"
},
{
"Path": "klevr_customerid.klevr_lifetimecountofgifts",
"TargetEntity": "account,contact",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_giftid) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_customerid,klevr_bookdate",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3cc7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "fbcab23f-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: InfluencedValueOfGifts - Account,Contact - Update",
"configuration": [
{
"Path": "klevr_customerid.klevr_influencedvalueofgifts",
"TargetEntity": "account,contact",
"Query": "select '' as etn, 'money' as attributetype, sum(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_attributedtoid = {{klevr_attributedtoid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_attributedtoid,klevr_amount,klevr_revisedamount",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "40c7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "fecab23f-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: CountOfCommitments - Contact - Create",
"configuration": [
{
"Path": "klevr_customerid.klevr_countofcommitments",
"TargetEntity": "contact",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_donorcommitmentid) as result from klevr_donorcommitment where klevr_customerid = {{klevr_customerid}} and statuscode <> 844060001"
},
{
"Path": "klevr_customerid.klevr_countofcommitments",
"TargetEntity": "account",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_donorcommitmentid) as result from klevr_donorcommitment where klevr_customerid = {{klevr_customerid}} and statuscode <> 844060001"
}
],
"filteringattributes": "statuscode,klevr_customerid",
"primaryobjecttypecode": "klevr_donorcommitment",
"sdkmessagefilterid": {
"sdkmessagefilterid": "2f83f1e7-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_donorcommitment"
},
"sdkmessageprocessingstepid": "01cbb23f-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: CountOfCommitments - Contact - Update",
"configuration": [
{
"Path": "klevr_customerid.klevr_countofcommitments",
"TargetEntity": "contact",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_donorcommitmentid) as result from klevr_donorcommitment where klevr_customerid = {{klevr_customerid}} and statuscode <> 844060001"
},
{
"Path": "klevr_customerid.klevr_countofcommitments",
"TargetEntity": "account",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_donorcommitmentid) as result from klevr_donorcommitment where klevr_customerid = {{klevr_customerid}} and statuscode <> 844060001"
}
],
"filteringattributes": "statuscode,klevr_customerid",
"primaryobjecttypecode": "klevr_donorcommitment",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3383f1e7-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_donorcommitment"
},
"sdkmessageprocessingstepid": "04cbb23f-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: AverageGiftAmount - Account,Contact - Create",
"configuration": [
{
"Path": "klevr_customerid.klevr_averagegiftamount",
"TargetEntity": "account,contact",
"Query": "select '' as etn, 'money' as attributetype, avg(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_customerid.klevr_largestgiftamount",
"TargetEntity": "account,contact",
"Query": "select top 1 '' as etn, 'money' as attributetype, coalesce(klevr_revisedamount, klevr_amount,0) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_customerid.klevr_largestgifton",
"TargetEntity": "account,contact",
"Query": "select top 1 '' as etn, 'datetime' as attributetype, coalesce(klevr_bookdate, createdon) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_customerid.klevr_lifetimevalueofgifts",
"TargetEntity": "account,contact",
"Query": "select '' as etn, 'money' as attributetype, sum(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_customerid = {{klevr_customerid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_customerid,klevr_amount,klevr_revisedamount,klevr_bookdate",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3cc7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "07cbb23f-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: LifetimeCountOfGifts - klevr_designation - Create",
"configuration": [
{
"Path": "klevr_designationid.klevr_lifetimecountofgifts",
"TargetEntity": "klevr_designation",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_giftid) as result from klevr_gift where klevr_designationid = {{klevr_designationid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_designationid",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3cc7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "0acbb23f-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: AverageGiftAmount - klevr_designation - Create",
"configuration": [
{
"Path": "klevr_designationid.klevr_averagegiftamount",
"TargetEntity": "klevr_designation",
"Query": "select '' as etn, 'money' as attributetype, avg(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_designationid = {{klevr_designationid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_designationid.klevr_largestgiftamount",
"TargetEntity": "klevr_designation",
"Query": "select top 1 '' as etn, 'money' as attributetype, coalesce(klevr_revisedamount, klevr_amount,0) as result from klevr_gift where klevr_designationid = {{klevr_designationid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_designationid.klevr_largestgiftid",
"TargetEntity": "klevr_designation",
"Query": "select top 1 'klevr_gift' as etn, 'entityreference' as attributetype, klevr_giftid as result from klevr_gift where klevr_designationid = {{klevr_designationid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_designationid.klevr_largestgifton",
"TargetEntity": "klevr_designation",
"Query": "select top 1 '' as etn, 'datetime' as attributetype, coalesce(klevr_bookdate, createdon) as result from klevr_gift where klevr_designationid = {{klevr_designationid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_designationid.klevr_lifetimevalueofgifts",
"TargetEntity": "klevr_designation",
"Query": "select '' as etn, 'money' as attributetype, sum(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_designationid = {{klevr_designationid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_designationid,klevr_amount,klevr_revisedamount,klevr_bookdate",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3cc7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "0dcbb23f-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: ValueOfCommitments - klevr_designation - Create",
"configuration": [
{
"Path": "klevr_designationid.klevr_valueofcommitments",
"TargetEntity": "klevr_designation",
"Query": "select '' as etn, 'money' as attributetype, sum(klevr_totalamount) as result from klevr_donorcommitment where klevr_designationid = {{klevr_designationid}} and statuscode <> 844060001"
}
],
"filteringattributes": "statuscode,klevr_designationid,klevr_totalamount",
"primaryobjecttypecode": "klevr_donorcommitment",
"sdkmessagefilterid": {
"sdkmessagefilterid": "2f83f1e7-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_donorcommitment"
},
"sdkmessageprocessingstepid": "10cbb23f-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: ValueOfCommitments - klevr_designation - Update",
"configuration": [
{
"Path": "klevr_designationid.klevr_valueofcommitments",
"TargetEntity": "klevr_designation",
"Query": "select '' as etn, 'money' as attributetype, sum(klevr_totalamount) as result from klevr_donorcommitment where klevr_designationid = {{klevr_designationid}} and statuscode <> 844060001"
}
],
"filteringattributes": "statuscode,klevr_designationid,klevr_totalamount",
"primaryobjecttypecode": "klevr_donorcommitment",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3383f1e7-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_donorcommitment"
},
"sdkmessageprocessingstepid": "13cbb23f-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: CountOfCommitments - klevr_designation - Create",
"configuration": [
{
"Path": "klevr_designationid.klevr_countofcommitments",
"TargetEntity": "klevr_designation",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_donorcommitmentid) as result from klevr_donorcommitment where klevr_designationid = {{klevr_designationid}} and statuscode <> 844060001"
}
],
"filteringattributes": "statuscode,klevr_designationid",
"primaryobjecttypecode": "klevr_donorcommitment",
"sdkmessagefilterid": {
"sdkmessagefilterid": "2f83f1e7-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_donorcommitment"
},
"sdkmessageprocessingstepid": "16cbb23f-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: CountOfCommitments - klevr_designation - Update",
"configuration": [
{
"Path": "klevr_designationid.klevr_countofcommitments",
"TargetEntity": "klevr_designation",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_donorcommitmentid) as result from klevr_donorcommitment where klevr_designationid = {{klevr_designationid}} and statuscode <> 844060001"
}
],
"filteringattributes": "statuscode,klevr_designationid",
"primaryobjecttypecode": "klevr_donorcommitment",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3383f1e7-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_donorcommitment"
},
"sdkmessageprocessingstepid": "19cbb23f-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: LifetimeCountOfGifts - campaign - Create",
"configuration": [
{
"Path": "klevr_originatingcampaignid.klevr_lifetimecountofgifts",
"TargetEntity": "campaign",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_giftid) as result from klevr_gift where klevr_originatingcampaignid = {{klevr_originatingcampaignid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_originatingcampaignid",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3cc7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "18a5b345-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: AverageGiftAmount - campaign - Create",
"configuration": [
{
"Path": "klevr_originatingcampaignid.klevr_averagegiftamount",
"TargetEntity": "campaign",
"Query": "select '' as etn, 'money' as attributetype, avg(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_originatingcampaignid = {{klevr_originatingcampaignid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_originatingcampaignid.klevr_largestgiftamount",
"TargetEntity": "campaign",
"Query": "select top 1 '' as etn, 'money' as attributetype, coalesce(klevr_revisedamount, klevr_amount,0) as result from klevr_gift where klevr_originatingcampaignid = {{klevr_originatingcampaignid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_originatingcampaignid.klevr_largestgiftid",
"TargetEntity": "campaign",
"Query": "select top 1 'klevr_gift' as etn, 'entityreference' as attributetype, klevr_giftid as result from klevr_gift where klevr_originatingcampaignid = {{klevr_originatingcampaignid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_originatingcampaignid.klevr_largestgifton",
"TargetEntity": "campaign",
"Query": "select top 1 '' as etn, 'datetime' as attributetype, coalesce(klevr_bookdate, createdon) as result from klevr_gift where klevr_originatingcampaignid = {{klevr_originatingcampaignid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_originatingcampaignid.klevr_lifetimevalueofgifts",
"TargetEntity": "campaign",
"Query": "select '' as etn, 'money' as attributetype, sum(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_originatingcampaignid = {{klevr_originatingcampaignid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_originatingcampaignid,klevr_amount,klevr_revisedamount,klevr_bookdate",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3cc7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "1ba5b345-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: ValueOfCommitments - campaign - Create",
"configuration": [
{
"Path": "klevr_originatingcampaignid.klevr_valueofcommitments",
"TargetEntity": "campaign",
"Query": "select '' as etn, 'money' as attributetype, sum(klevr_totalamount) as result from klevr_donorcommitment where klevr_commitment_campaignid = {{klevr_commitment_campaignid}} and statuscode <> 844060001"
}
],
"filteringattributes": "statuscode,klevr_commitment_campaignid,klevr_totalamount",
"primaryobjecttypecode": "klevr_donorcommitment",
"sdkmessagefilterid": {
"sdkmessagefilterid": "2f83f1e7-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_donorcommitment"
},
"sdkmessageprocessingstepid": "1ea5b345-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: ValueOfCommitments - campaign - Update",
"configuration": [
{
"Path": "klevr_originatingcampaignid.klevr_valueofcommitments",
"TargetEntity": "campaign",
"Query": "select '' as etn, 'money' as attributetype, sum(klevr_totalamount) as result from klevr_donorcommitment where klevr_commitment_campaignid = {{klevr_commitment_campaignid}} and statuscode <> 844060001"
}
],
"filteringattributes": "statuscode,klevr_commitment_campaignid,klevr_totalamount",
"primaryobjecttypecode": "klevr_donorcommitment",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3383f1e7-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_donorcommitment"
},
"sdkmessageprocessingstepid": "21a5b345-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: LifetimeCountOfGifts - klevr_designation - Update",
"configuration": [
{
"Path": "klevr_designationid.klevr_lifetimecountofgifts",
"TargetEntity": "klevr_designation",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_giftid) as result from klevr_gift where klevr_designationid = {{klevr_designationid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_designationid",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "40c7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "24a5b345-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: CountOfCommitments - campaign - Create",
"configuration": [
{
"Path": "klevr_originatingcampaignid.klevr_countofcommitments",
"TargetEntity": "campaign",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_donorcommitmentid) as result from klevr_donorcommitment where klevr_commitment_campaignid = {{klevr_commitment_campaignid}} and statuscode <> 844060001"
}
],
"filteringattributes": "statuscode,klevr_commitment_campaignid",
"primaryobjecttypecode": "klevr_donorcommitment",
"sdkmessagefilterid": {
"sdkmessagefilterid": "2f83f1e7-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_donorcommitment"
},
"sdkmessageprocessingstepid": "27a5b345-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: CountOfCommitments - campaign - Update",
"configuration": [
{
"Path": "klevr_originatingcampaignid.klevr_countofcommitments",
"TargetEntity": "campaign",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_donorcommitmentid) as result from klevr_donorcommitment where klevr_commitment_campaignid = {{klevr_commitment_campaignid}} and statuscode <> 844060001"
}
],
"filteringattributes": "statuscode,klevr_commitment_campaignid",
"primaryobjecttypecode": "klevr_donorcommitment",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3383f1e7-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_donorcommitment"
},
"sdkmessageprocessingstepid": "2aa5b345-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: LifetimeCountOfGifts - campaign - Update",
"configuration": [
{
"Path": "klevr_originatingcampaignid.klevr_lifetimecountofgifts",
"TargetEntity": "campaign",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_giftid) as result from klevr_gift where klevr_originatingcampaignid = {{klevr_originatingcampaignid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_originatingcampaignid",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "40c7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "2da5b345-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: LifetimeCountOfGifts - klevr_appeal - Update",
"configuration": [
{
"Path": "klevr_appealid.klevr_lifetimecountofgifts",
"TargetEntity": "klevr_appeal",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_giftid) as result from klevr_gift where klevr_appealid = {{klevr_appealid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_appealid",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "40c7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "30a5b345-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: LifetimeCountOfGifts - klevr_package - Update",
"configuration": [
{
"Path": "klevr_packageid.klevr_lifetimecountofgifts",
"TargetEntity": "klevr_package",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_giftid) as result from klevr_gift where klevr_packageid = {{klevr_packageid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_packageid",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "40c7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "34a5b345-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: LifetimeCountOfGifts - klevr_package - Create",
"configuration": [
{
"Path": "klevr_packageid.klevr_lifetimecountofgifts",
"TargetEntity": "klevr_package",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_giftid) as result from klevr_gift where klevr_packageid = {{klevr_packageid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_packageid",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3cc7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "37a5b345-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: ValueOfCommitments - klevr_appeal - Create",
"configuration": [
{
"Path": "klevr_appealid.klevr_valueofcommitments",
"TargetEntity": "klevr_appeal",
"Query": "select '' as etn, 'money' as attributetype, sum(klevr_totalamount) as result from klevr_donorcommitment where klevr_appealid = {{klevr_appealid}} and statuscode <> 844060001"
}
],
"filteringattributes": "statuscode,klevr_appealid,klevr_totalamount",
"primaryobjecttypecode": "klevr_donorcommitment",
"sdkmessagefilterid": {
"sdkmessagefilterid": "2f83f1e7-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_donorcommitment"
},
"sdkmessageprocessingstepid": "3aa5b345-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: ValueOfCommitments - klevr_appeal - Update",
"configuration": [
{
"Path": "klevr_appealid.klevr_valueofcommitments",
"TargetEntity": "klevr_appeal",
"Query": "select '' as etn, 'money' as attributetype, sum(klevr_totalamount) as result from klevr_donorcommitment where klevr_appealid = {{klevr_appealid}} and statuscode <> 844060001"
}
],
"filteringattributes": "statuscode,klevr_appealid,klevr_totalamount",
"primaryobjecttypecode": "klevr_donorcommitment",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3383f1e7-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_donorcommitment"
},
"sdkmessageprocessingstepid": "3da5b345-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: AverageGiftAmount - klevr_package - Create",
"configuration": [
{
"Path": "klevr_packageid.klevr_averagegiftamount",
"TargetEntity": "klevr_package",
"Query": "select '' as etn, 'money' as attributetype, avg(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_packageid = {{klevr_packageid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_packageid.klevr_largestgiftamount",
"TargetEntity": "klevr_package",
"Query": "select top 1 '' as etn, 'money' as attributetype, coalesce(klevr_revisedamount, klevr_amount,0) as result from klevr_gift where klevr_packageid = {{klevr_packageid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_packageid.klevr_largestgiftid",
"TargetEntity": "klevr_package",
"Query": "select top 1 'klevr_gift' as etn, 'entityreference' as attributetype, klevr_giftid as result from klevr_gift where klevr_packageid = {{klevr_packageid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_packageid.klevr_largestgifton",
"TargetEntity": "klevr_package",
"Query": "select top 1 '' as etn, 'datetime' as attributetype, coalesce(klevr_bookdate, createdon) as result from klevr_gift where klevr_packageid = {{klevr_packageid}} and statuscode = 699960001 and klevr_return <> 1 order by coalesce(klevr_revisedamount, klevr_amount,0) desc"
},
{
"Path": "klevr_packageid.klevr_lifetimevalueofgifts",
"TargetEntity": "klevr_package",
"Query": "select '' as etn, 'money' as attributetype, sum(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_packageid = {{klevr_packageid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_packageid,klevr_amount,klevr_revisedamount,klevr_bookdate",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3cc7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "e6f4b74b-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: CountOfCommitments - klevr_appeal - Create",
"configuration": [
{
"Path": "klevr_appealid.klevr_countofcommitments",
"TargetEntity": "klevr_appeal",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_donorcommitmentid) as result from klevr_donorcommitment where klevr_appealid = {{klevr_appealid}} and statuscode <> 844060001"
}
],
"filteringattributes": "statuscode,klevr_appealid",
"primaryobjecttypecode": "klevr_donorcommitment",
"sdkmessagefilterid": {
"sdkmessagefilterid": "2f83f1e7-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_donorcommitment"
},
"sdkmessageprocessingstepid": "e9f4b74b-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: CountOfCommitments - klevr_appeal - Update",
"configuration": [
{
"Path": "klevr_appealid.klevr_countofcommitments",
"TargetEntity": "klevr_appeal",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_donorcommitmentid) as result from klevr_donorcommitment where klevr_appealid = {{klevr_appealid}} and statuscode <> 844060001"
}
],
"filteringattributes": "statuscode,klevr_appealid",
"primaryobjecttypecode": "klevr_donorcommitment",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3383f1e7-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_donorcommitment"
},
"sdkmessageprocessingstepid": "ecf4b74b-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: SoftCreditToCount - Account,Contact - Update",
"configuration": [
{
"Path": "klevr_softcredittoid.klevr_softcreditcountofgifts",
"TargetEntity": "account,contact",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_giftid) as result from klevr_gift where klevr_softcredittoid = {{klevr_softcredittoid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_softcredittoid",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "40c7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "eff4b74b-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: SoftCreditToCount - Account,Contact - Create",
"configuration": [
{
"Path": "klevr_softcredittoid.klevr_softcreditcountofgifts",
"TargetEntity": "account,contact",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_giftid) as result from klevr_gift where klevr_softcredittoid = {{klevr_softcredittoid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "statuscode,klevr_softcredittoid",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3cc7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "f2f4b74b-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: SoftCreditToValue - Account,Contact - Update",
"configuration": [
{
"Path": "klevr_softcredittoid.klevr_softcreditvalueofgifts",
"TargetEntity": "account,contact",
"Query": "select '' as etn, 'money' as attributetype, sum(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_softcredittoid = {{klevr_softcredittoid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "klevr_amount,klevr_revisedamount,statuscode,klevr_softcredittoid",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "40c7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "f5f4b74b-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: ValueOfCommitments - klevr_package - Create",
"configuration": [
{
"Path": "klevr_packageid.klevr_valueofcommitments",
"TargetEntity": "klevr_package",
"Query": "select '' as etn, 'money' as attributetype, sum(klevr_totalamount) as result from klevr_donorcommitment where klevr_packageid = {{klevr_packageid}} and statuscode <> 844060001"
}
],
"filteringattributes": "statuscode,klevr_packageid,klevr_totalamount",
"primaryobjecttypecode": "klevr_donorcommitment",
"sdkmessagefilterid": {
"sdkmessagefilterid": "2f83f1e7-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_donorcommitment"
},
"sdkmessageprocessingstepid": "f8f4b74b-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: ValueOfCommitments - klevr_package - Update",
"configuration": [
{
"Path": "klevr_packageid.klevr_valueofcommitments",
"TargetEntity": "klevr_package",
"Query": "select '' as etn, 'money' as attributetype, sum(klevr_totalamount) as result from klevr_donorcommitment where klevr_packageid = {{klevr_packageid}} and statuscode <> 844060001"
}
],
"filteringattributes": "statuscode,klevr_packageid,klevr_totalamount",
"primaryobjecttypecode": "klevr_donorcommitment",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3383f1e7-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_donorcommitment"
},
"sdkmessageprocessingstepid": "fbf4b74b-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: SolicitedCount - Contact - Create",
"configuration": [
{
"Path": "klevr_solicitedbyid.klevr_solicitedcountofgifts",
"TargetEntity": "contact",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_giftid) as result from klevr_gift where klevr_solicitedbyid = {{klevr_solicitedbyid}} and statuscode = 699960001 and klevr_return <> 1"
},
{
"Path": "klevr_solicitedbyid.klevr_solicitedvalueofgifts",
"TargetEntity": "contact",
"Query": "select '' as etn, 'money' as attributetype, sum(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_solicitedbyid = {{klevr_solicitedbyid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "klevr_amount,klevr_revisedamount,klevr_solicitedbyid,statuscode",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3cc7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "fef4b74b-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: SolicitedCount - Contact - Update",
"configuration": [
{
"Path": "klevr_solicitedbyid.klevr_solicitedcountofgifts",
"TargetEntity": "contact",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_giftid) as result from klevr_gift where klevr_solicitedbyid = {{klevr_solicitedbyid}} and statuscode <> 0"
},
{
"Path": "klevr_solicitedbyid.klevr_solicitedvalueofgifts",
"TargetEntity": "contact",
"Query": "select '' as etn, 'money' as attributetype, sum(coalesce(klevr_revisedamount, klevr_amount,0)) as result from klevr_gift where klevr_solicitedbyid = {{klevr_solicitedbyid}} and statuscode = 699960001 and klevr_return <> 1"
}
],
"filteringattributes": "klevr_amount,klevr_revisedamount,klevr_solicitedbyid,statuscode",
"primaryobjecttypecode": "klevr_gift",
"sdkmessagefilterid": {
"sdkmessagefilterid": "40c7e9ed-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_gift"
},
"sdkmessageprocessingstepid": "01f5b74b-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: CountOfCommitments - klevr_package - Create",
"configuration": [
{
"Path": "klevr_packageid.klevr_countofcommitments",
"TargetEntity": "klevr_package",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_donorcommitmentid) as result from klevr_donorcommitment where klevr_packageid = {{klevr_packageid}} and statuscode <> 0"
}
],
"filteringattributes": "statuscode,klevr_packageid",
"primaryobjecttypecode": "klevr_donorcommitment",
"sdkmessagefilterid": {
"sdkmessagefilterid": "2f83f1e7-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_donorcommitment"
},
"sdkmessageprocessingstepid": "04f5b74b-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: CountOfCommitments - klevr_package - Update",
"configuration": [
{
"Path": "klevr_packageid.klevr_countofcommitments",
"TargetEntity": "klevr_package",
"Query": "select '' as etn, 'int' as attributetype, count(klevr_donorcommitmentid) as result from klevr_donorcommitment where klevr_packageid = {{klevr_packageid}} and statuscode <> 0"
}
],
"filteringattributes": "statuscode,klevr_packageid",
"primaryobjecttypecode": "klevr_donorcommitment",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3383f1e7-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_donorcommitment"
},
"sdkmessageprocessingstepid": "07f5b74b-750e-f011-998a-6045bd3e65cf"
},
{
"name": "Klevr.Feature.Plugins.SqlCalculator: PledgeGiftsReceived - donorcommitment - Update",
"configuration": [
{
"Path": "klevr_pledgeid.klevr_giftsoutstanding",
"TargetEntity": "klevr_pledge",
"Query": "select '' as etn, 'money' as attributetype, max(p.klevr_amount) - sum(d.klevr_giftsreceived) as result from klevr_donorcommitment d inner join klevr_pledge p on d.klevr_pledgeid = p.klevr_pledgeid where d.klevr_pledgeid = {{klevr_pledgeid}}"
},
{
"Path": "klevr_pledgeid.klevr_giftsreceived",
"TargetEntity": "klevr_pledge",
"Query": "select '' as etn, 'money' as attributetype, sum(d.klevr_giftsreceived) as result from klevr_donorcommitment d where d.klevr_pledgeid = {{klevr_pledgeid}}"
}
],
"filteringattributes": "klevr_giftsreceived",
"primaryobjecttypecode": "klevr_donorcommitment",
"sdkmessagefilterid": {
"sdkmessagefilterid": "3383f1e7-9e95-ef11-8a6a-002248e415a6",
"primaryobjecttypecode": "klevr_donorcommitment"
},
"sdkmessageprocessingstepid": "45a84cbb-f568-f011-bec2-6045bd3e65cf"
}
]
Stats Web resource
The display of the fields is done though a web resource. This is a straight forward html web resource that reads all fields on the current record, matches it to a list defined in the code, and if a value is found, it displays that value in a block. The code defines all values it will display, as well as their type to determine how to format the value and which icon to show. This web resource can be copied and customised if required, to add or remove any other fields from the config.
Recalculating Statistics
there is a custom API defined in klevr utilities that allows you to rerun all calculations for a given record. It is called klevr_recalculatestatistics. It takes 2 parameters, the schema name of the entity you want to target, and the id of the record you wish to recalculate. It recalculates one record at a time.
It will find all "create" plugin steps on the SQL Calculator plugin, evaluate all the configurations for these steps and find any steps targeting your type of record. It will then find the source or trigger entity for the step, based on how it is defined to reach the target record, e.g. If you are recalculating a contact, then if there is a step triggered by a gift targeting the solicitedby contact, it will find a gift associated to the contact through the solicitedby relationship. If one is found, it will run the query to find the total value that needs to be set on the contact, alternatively if none is found, it will clear the statistic field.
Basically in a nutshell it will find all queries contributing to any statistical fields on the contact and execute them to update all values on the contact as per the SqlCalculator plugin step definitions that is in place in the current environment.
There is also a sample flow in the fundraising solution that shows how you could use this in a flow. It selects a list of contacts and runs the recalculate cusotm API for all of them. It takes a shortcut by finding contacts that have not been modified in the last 7 days. The recalculation will modify the contacts, and therefore if you rerun the flow, it will not find them again. Ideally you should find a more robust way to identify records you wish to run for, for instance, cretae a boolean field on the contact, and find all contacts where the field is false, and set the field to true in the flow.
You can recalculate any entity that has giving stats on it, (or targeted by any step in the sql calculator plugin configuration), like pledges, campaigns, appeals...
Last updated on