Action called through "Execute action on a set of rows" doesn't run

My client has an app which her Technicians use to know when,how and which pools to service. Each Tech can generate his/her daily Route through a button (using a gallery view from a โ€œMenuโ€ table). Each โ€œCLIENT_POOLโ€ has an ASSIGNED_USER_UID (which refers to the tech) and a Service Day (which is used to know on which Dayโ€™s route to add a visit for this pool). The Route generating button should do two things.

  1. Create a new Route entry in the ROUTE_MASTER table (which works fine)
  2. And then, it should select all of the currently logged-in Techโ€™s assigned Pools and schedule a Visit to each one of them for this dayโ€™s Route (based on the poolโ€™s service day). (Doesnโ€™t work).

Now as a method of debugging, iโ€™ve added confirmation dialogs on each of the 3 actions to see which one isnโ€™t running. The โ€œCreate Daily Visitโ€ action on the โ€œClient Poolsโ€ table, doesnโ€™t seem to run at all.
However, the Referenced Rows condition seems to return the correct results on which that action should be executed. What am i missing here?

Action Group called upon clicking on the gallery button:

Create Route Action :

Add visits to route Action :

Row filter condition for this action :

SELECT(CLIENT_POOLS[CLIENT_POOL_UID], AND([ASSIGNED_USER_UID] = USEREMAIL(), [Service Day] = INDEX(
LIST(โ€œSundayโ€,โ€œMondayโ€,โ€œTuesdayโ€,โ€œWednesdayโ€,โ€œThursdayโ€,โ€œFridayโ€,โ€œSaturdayโ€),
WEEKDAY(TODAY()))))

Create Daily Visit action (not running) :

What am i missing here?

Solved Solved
0 6 336
1 ACCEPTED SOLUTION

The SELECT() expression in the action โ€œExecute on a set of rowsโ€ was not reading the key column. Then it didnโ€™t work.

View solution in original post

6 REPLIES 6

Steve
Platinum 4
Platinum 4

I would guess the row filter expression for Add visits to Route is producing no result.

What do you base that on?

Hi, I based it on the fact that in my database, there are two Client Pools with a service day of Monday (changed the service day today) that are assigned to me (currently logged in user). These pools have a UID of CLIENT_POOL_129& CLIENT_POOL_250.

When i run the row filter expression test, these are the results:

Iโ€™m at a loss.

I encourage you to engage support@appsheet.com for further help on this one.

Thank you, i just contacted them. Hopefully theyโ€™ll be able to help out

@Stelios_Papamichail
One thing little different in the action setup is

  1. The reference action โ€œAdd Visits to Routeโ€ is having referenced table as CLIENT_POOLS and referenced rows expression is also on CLIENT_POOLS table.

  2. However the referenced action is โ€œCreate Daily Visitโ€ is set on the third VISIT_MASTER table via CLIENT_POOLS table.

The more common set up for referenced actions that I have come across is between two tables -parent and child. Parent table action is as in the point 1 above. However referenced action is directly on the child table. So the referenced action is of type "Data: Set the values of some columns in this row"on the same table rather than โ€œData: add a new row to another table using values from this row.โ€

https://www.appsheet.com/samples/This-app-shows-how-to-use-reference-actions?appGuidString=e76d2e73-...

Of course, the action set up you have made could be possible. Will request if possible, if you can post back solution that the AppSheet support team will give.

The SELECT() expression in the action โ€œExecute on a set of rowsโ€ was not reading the key column. Then it didnโ€™t work.

Top Labels in this Space