Skip to main content
February 3, 2023
Solved

Related Actions Not Getting Refreshed

  • February 3, 2023
  • 5 replies
  • 0 views

We have a requirement where we display/hide the related actions for a particular record based on the approval or rejection of tasks. We are observing that the even though the record grid data is getting refreshed when we click on the refresh button, but the related actions are not getting refreshed. Please find a sample snippet of the code:-

a!gridField(
labelPosition: "ABOVE",
data: a!recordData(
recordType: recordType!SampleRecord,
filters: rule!SampleFilterRule()
),
columns: {
a!gridColumn(),
a!gridColumn(
value: a!recordActionField(
actions: {
a!recordActionItem(
action: recordType!SampleRecord.actions.SampleAction,
identifier: fv!row[SampleMetric.identifier]
)
}
)
)
},
validations: {},
spacing: "DENSE",
borderStyle: "LIGHT",
shadeAlternateRows: false,
rowHeader: 1,
refreshOnVarChange: ri!refreshVariable,
refreshAfter: "RECORD_ACTION",
showSearchBox: true,
showRefreshButton: true(),
showExportButton: false,
)

What can I do to resolve this?

Best answer by peter.lewis

Can you try to add logic in your grid that shows / hides the actions there? I realize this may be duplicative of visibility rules you have in the record type, but I think it should achieve what you're looking for.

5 replies

peter.lewis
Employee
February 3, 2023

Can you try to add logic in your grid that shows / hides the actions there? I realize this may be duplicative of visibility rules you have in the record type, but I think it should achieve what you're looking for.

February 8, 2023

Hi Peter, thanks this seemed to have worked! Just a query, would this impact performance of the page?

abhayd3663
February 7, 2023

Did you checked the sync options under record type configurations? is it enabled ?

If sync is enabled additional configurations need to be provided like following.

Learn more about record data sync at - https://docs.appian.com/suite/help/22.4/records-data-sync.html

February 8, 2023

Hi Abhay, thanks for the reply! we are not using synced records as we are using a view to populate this record as well as there are some limitations to the data model which doesn't work in favour of data synced records.

abhayd3663
February 8, 2023

Another issue could be missed activity chaining in the process used to update the data.