Hello everyone, I’m new with Appian and I’m currently trying to work on a basic CRUD project.
I’m currently struggling to create an “Update” related action for my List.
1.- I have created a query expression rule to retrieve only the values of a specific record based on the id, which is currently working properly.
2.-I have created a related action inside my main Record Type to Update my record which has the following context for the process model parameter:
{
TSM_TaskList:
rule!TSM_queryTaskList(
tasklistIdPk: rv!identifier
).data
}
3.- I have edited the list to add a grid for the “Update” button next to the record, and I added the following display value:
a!recordActionField(
actions: a!recordActionItem(
action: recordtype!TSM_TaskList.action.updateTaskList,
identifier: fv!identifier
),
display: “ICON”
)
The button display successfully on the table for each record, however when I click on it, I get the following error:
“An error occurred while applying the context for the TSM Task List action [identifier=220,990]. Details: Expression evaluation error: TSM Task List can only be indexed into using square brackets or the index function”.
Can anyone help me identify where is my issue?
Or if you guys have a better approach on how to create a proper Update record action.
Discussion posts and replies are publicly visible
javierl056499 said:rule!TSM_queryTaskList( tasklistIdPk: rv!identifier ).data
As per error when record action is invoked from user interface, the system is facing challenge in applying the context for the action (process model parameter). To resolve this suggest you to replace the above query rule code with rv!record as below then try!
{TSM_TaskList:rv!record}