The action does not work - doesn’t trigger. But, when the Referenced Rows is set to “project_plan_template[project_template_id]” it works fine - ALL the fields are updated . Unfortunately, I need just records with the particular project_template_id designated in the SELECT statement to be updated.
Note: project_template_id is the key field for the project_plan_template table. Could this be the reason it’s not working? I’ve used Referenced Rows many times and not sure how I should be configuring this?
[template] is a ref col in the table project_plan that references the [project template id] of the table project_plan_template, correct?
EDITED:
The expression in the referenced rows should return a list of key values. so there is nothing wrong in specifying project_plan_template[project_template_id]
The referenced rows expression in general looks good. You may wish to check in test pane if the expression returns any “Y” values by creating a VC with that expression. This testing will be useful because “project_plan_template[project_template_id]” works fine. So maybe while further qualifying argument is causing an issue of not returning any rows.
Hi Suvrutt, when I click on the test option , there are no records - expression results are blank but when I look at the Test Results table, these are not fields from the project_plan_template table. These appear to be records from the project_plan table
Here is the set_project config. But as a side note: I removed the INPUT option to simplify the testing and still had the same issue - Works only when there are no conditions on the Referenced Rows - even with the INPUT() function in use.
I believe you do not need to use SELECT in your expression; you are selecting the key column and your condition also matches the key column. Instead, I believe your expression should be: