When a record is created, run action on previous records.

I have records in an "Equipment" table with related records in an "Inspections" table.equipment-details.png

When I add a record to the Inspections table, I want a bot to change the Status of the previous records to "Expired".

I have managed to get the bot to change all the related records, not just the old ones. I want to keep the Status of the newly added record as "Current".

How do I get it to just change the old records?

โ€ƒAction SettingsAction SettingsEvent SettingsEvent SettingsProcess SettingsProcess SettingsBefore Bot RunBefore Bot RunAfter Bot RunAfter Bot Run

Solved Solved
0 2 109
1 ACCEPTED SOLUTION

In your bot step, "Set [Status} to Expired", change the "Referenced Rows" expression to:

[Equipment #].[Related Inspections] - LIST([_THISROW]) 

I hope this helps!

View solution in original post

2 REPLIES 2

In your bot step, "Set [Status} to Expired", change the "Referenced Rows" expression to:

[Equipment #].[Related Inspections] - LIST([_THISROW]) 

I hope this helps!

It works! Thanks so much!

Top Labels in this Space