how to calculate 2 transaction body fields in a wo...
# ask-stanley-ai
s
how to calculate 2 transaction body fields in a workflow formula
c
AI generated answer (using internal Slack threads):
To calculate two transaction body fields in a workflow formula, you can use the formula field in the workflow action. Here's a general approach: 1. Create a new workflow or edit an existing one. 2. Add a new action to the workflow. The action type should be
Set Field Value
. 3. In the
Field
dropdown, select the field you want to update. 4. In the
Value
section, select
Formula
. 5. In the formula field, you can write a formula to calculate the two transaction body fields. For example, if you have two fields
field1
and
field2
, you can write
{field1} + {field2}
to calculate their sum. Please note that the field names in the formula should be the script IDs of the fields. Also, the formula can only use fields that are on the same record as the workflow. Here's an example of a formula that calculates the sum of two fields:
Copy code
{field1} + {field2}
This formula will add the values of
field1
and
field2
and set the result in the field you selected in the
Set Field Value
action. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.816012084
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.806093037
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.802529693
Please provide your feedback on this answer.