Value expression in a workflow to "reassign" Ref Order Id from one Order to Another

I am using the Order Capture App (Customer, Orders, Orders Details, Products) as the template for my own App. After structuring the fields of my need and developing several actions and workflows, I wrote an Action that could “migrate” some Order Ids (Ref Column) from Order Details Worksheet to another one, already registered for same customer. In other words, I need to consolidate some Order Ids by changing the “donors” Order Id to the "receivers’ Order Id.

The problem that I’ve been facing is that this Action “Data: sets a value in a column”, when I use Expressions for the Value such as " TEXT(SELECT(Orders[Order Id], [Order Status]=“Destiny”)) ", the test verifies the Order Id of the receiver correctly, but when is submitted to the App, it returns the assignment blank for the correspondent rows. I tried to set the text value manually (both in the action with text characters and/or in the worksheet) and the App runs it perfectly. .

Is there something I’m missing out?

Solved Solved
0 4 430
1 ACCEPTED SOLUTION

Found the problem within the Workflow IF THIS IS TRUE Condition.

Since I had many Actions related to each step of what I call the Consolidation Process, I established a broad open Condition so that the sequence of several (many) consecutive actions could be triggered. That was my mistake, cause I didn’t know that AppSheet is a redundant based software, which means that every time an Action modifies data, it might triggered the Workflow all over again. This could derived in chaos during the process. The way to solve it is by creating multiple Workflows that satisfy each and every precondition for those, and separately, to be triggered.

Lesson: Carefully verify your Workflow Criteria and don’t hesitate to create as many Workflows as long as each one, compared to the others and related to their Actions, do what they are intended to do.

Aleksi, thank you for being there for us…

View solution in original post

4 REPLIES 4
Top Labels in this Space