Execute an action on a set of rows changes wrong fields

Hey guys,
I’m using a “execute an action on a set of rows” action.
The problem is that the rule changes also the value other columns:
Action1:
2X_1_1a7a1758a22c8ccdabfd9583fc8c61c06778eab3.png
Action2:
2X_6_64f9691aec244375c55526f81995277d19dd17cb.png
The goal is to just change the value of “ERP” like in action1 just on many rows where rule of action2 is true.
When Im running the Action2 (execute an action on…) with the action1 as refecerenced action all the values of the view are chaning (e.g.: the “user”).
2X_4_4a8c57a4a90078652aca21b4cc5c7a206cd49999.png
What I’m doing wrong?
Can someone help me?

Solved Solved
0 6 975
1 ACCEPTED SOLUTION

I am not sure I understand what you are reporting. Can you clarify?

The Data Change action is only updating the value of the single field you specify.

However, if your table contains fields that have AppFormulas or Worksheet Formulas, then those field values will be recomputed and potentially updated whenever the record is updated. In your case the update is being triggered by the Data Change action.

If you want an AppFormula to be evaluate exactly once when the record is first created, you should specify that expression in the InitialValue property. InitialValue expressions are not reevaluated on updates.

Forgive me if I misunderstand what you are reporting.

View solution in original post

6 REPLIES 6

Hayden
New Member

If you are comfortable with having our team look at your app, please add the URL from the editor view to this thread and I will see if I can determine the cause of the issue.

Is it possible that the other columns which are being changed are incorporating [ERP] into the formula which sets their value?

Hey @Hayden,

thank you for your response. I cant post the URL, I hope we can solve it just the same.
The ERP ist not connected to the other fields but the other fields have formulas behind where the value is set when a new row gets added.
Is it possible that the action activate the formulas again? Can I stop this and how?
Thank you for your help!

It is possible that the row update generated by your workflow is in turn triggering additional workflows which are changing values. If this is the case, one way to circumvent would be to include additional conditions in the “IF THIS IS TRUE” section of the other workflows. Potentially something to the effect of AND( [ERP]<>“Export ERP”, Original Filter Condition).

You might also consider using “Flag columns” which can prevent a workflow from executing twice on the same row. In the table where the workflow is acting you can add a column like [Has workflow 1 completed?] and then set up a filter condition for Workflow 1 like: [Has workflow 1 completed?] = “No” , and then add an additional triggered step in Workflow 1 which sets that columns value to “Yes”.

A few edits concerning above:
Changes initiated by workflows do not trigger subsequent workflows, unless the workflow is calling the REST API to add/update entries. So the theory I presented above about the workflow kicking off a cascade of additional actions is not correct.

If you are concerned about workflows only acting on a row once, then it might be worth considering moving whatever function they performed from a Workflow to an Initial Value setting instead.

The thing I dont understand is the point, that the action starts a complete new change of the datarow, not just the one field. Is there a way to manage this?

I am not sure I understand what you are reporting. Can you clarify?

The Data Change action is only updating the value of the single field you specify.

However, if your table contains fields that have AppFormulas or Worksheet Formulas, then those field values will be recomputed and potentially updated whenever the record is updated. In your case the update is being triggered by the Data Change action.

If you want an AppFormula to be evaluate exactly once when the record is first created, you should specify that expression in the InitialValue property. InitialValue expressions are not reevaluated on updates.

Forgive me if I misunderstand what you are reporting.

Top Labels in this Space