Add ONE row only the current work week to another table

Hello Guys

How do add ONLY ONE ROW to the table below. I manage to put the current WW in column A however it duplicate 13 rows WW48 because there are also 13 row on top of WW47

desmond_lee_0-1701047663630.png

This is my bots. 

desmond_lee_1-1701047767768.png

desmond_lee_2-1701047801920.png

The action WEEKNUM(TODAY())

 

Solved Solved
0 10 400
1 ACCEPTED SOLUTION

Try setting the Filter condition of the event as

[id column] = MINROW("table name","_RowNumber")

View solution in original post

10 REPLIES 10

Aurelien
Google Developer Expert
Google Developer Expert

Hi @desmond_lee 

What about using a condition there?

Aurelien_0-1701066844193.png

Such as, for example:

 

[WeekNumber]=ISOWEEKNUM(TODAY())

 

 

Nothing is happening. It does not add a new row

Try setting the Filter condition of the event as

[id column] = MINROW("table name","_RowNumber")

There is an error in data type. Column A WW is the key

desmond_lee_0-1701203419360.png

 

My expression should go into the Filter condition of the event. Not the value of [WW].

Thanks a lot. It works perfectly. I just tweak to [WW] = MAXROW("Weekly STS","_RowNumber")

desmond_lee_0-1701232528473.png

 

You want to add a row weekly to a table and that row is current's week number?

The last row is 47 at column A which is also the key. I want to schedule this ti add ONLY ONE ROW and put the lastest week on every MONDAY 1am in the morning.

So... you want a bot that adds a row to a "weeks" table every monday.

Config:

Schedule bot with a weekly event that runs on monday at 1AM (12AM should work as well, maybe 00:01 could be a good idea)
Action: Add a row to another table using values from this row.
This action should have something like ISOWEEKNUM(TODAY()) for the key column.
The trick is that this needs to be "Foreachrow" event in order to be able to point to a table, but you need to filter the rows in which the bot is going to run to just one row. Use something like this:

[RowNumber]=2

Since you are not refering to any record from that row, it just matters that it returns exactly one 

I think you will want to toggle off the 'for each row' selection in the event. This will remove the connection to a specific table, so you may have to make some adjustments to your process and task as well.

Top Labels in this Space