Skip to content

Commit

Permalink
+ (Finance) Fixed issue of attribute values not being populated in cu…
Browse files Browse the repository at this point in the history
…stom workflows triggered by Giving Automation Alert.
  • Loading branch information
PraveenMathew92 committed Dec 27, 2023
1 parent 27f6627 commit 060c14e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Rock/Tasks/ProcessTransactionAlertActions.cs
Expand Up @@ -81,8 +81,9 @@ public override void Execute( Message message )
var workflowAttributeValues = new Dictionary<string, string>();
workflowAttributeValues.Add( nameof( FinancialTransactionAlert ), alert.Guid.ToString() );
workflowAttributeValues.Add( nameof( FinancialTransactionAlertType ), alertType.Guid.ToString() );
workflowAttributeValues.Add( "FinancialTransactionId", alert.FinancialTransaction.Id.ToStringSafe() );
workflowAttributeValues.Add( nameof( Person ), person.Guid.ToString() );
alert.LaunchWorkflow( alertType.WorkflowTypeId, string.Empty, workflowAttributeValues, null );
alert.LaunchWorkflow( alertType.WorkflowTypeId, string.Empty, workflowAttributeValues, alert.PersonAliasId );
}

// Add the person to a connection opportunity if configured
Expand Down
2 changes: 1 addition & 1 deletion RockWeb/Blocks/Finance/GivingAutomationConfiguration.ascx
Expand Up @@ -293,7 +293,7 @@
</div>

<div class="panel-body">
<Rock:WorkflowTypePicker ID="wtpLaunchWorkflow" runat="server" Label="Launch Workflow of Type" ValidationGroup="vgAlertDetails" Help="If matched, a workflow of the provided type will be launched setting the authorized person as the initiator and setting the attribute with the key of 'FinancialTransactionId' is it exists" />
<Rock:WorkflowTypePicker ID="wtpLaunchWorkflow" runat="server" Label="Launch Workflow of Type" ValidationGroup="vgAlertDetails" Help="If matched, the selected workflow will be launched setting the workflow 'Initiator' as the financial transaction's 'authorized' person, and setting the attribute value with key 'FinancialTransactionId' (if it exists) to the financial transaction's Id." />
<Rock:RockDropDownList ID="ddlConnectionType" runat="server" Label="Connection Type" AutoPostBack="true" ValidationGroup="vgAlertDetails" OnSelectedIndexChanged="ddlConnectionType_SelectedIndexChanged" CssClass="input-width-xxl" />
<Rock:RockDropDownList ID="ddlConnectionOpportunity" runat="server" Label="Connection Opportunity" ValidationGroup="vgAlertDetails" CssClass="input-width-xxl" Help="If matched, will create a new connection request with the authorized person as the requestor and setting the attribute with the key 'FinancialTransactionId' if it exists." />
<Rock:RockDropDownList ID="ddlDonorSystemCommunication" runat="server" Label="Send Donor Communication From Template" Help="If matched, a new communication will be sent to the person authorizing the gift using the provided communication template." ValidationGroup="vgAlertDetails" />
Expand Down

0 comments on commit 060c14e

Please sign in to comment.