Skip to main content
July 9, 2025
Question

Problem with Record Action... send help

  • July 9, 2025
  • 4 replies
  • 0 views

context:
I have 3 interfaces that communicate with each other, What I need to do is give users the ability to open a project and from the project detail interface have a button in related action that opens another interface that allows the user to add employees to the project.



This is the path they take:
"GP_ProgettoInterfaccia" > "GP_ProgettoSummary" > "GP_CreateOrUpdateGPprogettoAnagrafica"

here all in order:[View:/cfs-file/__key/communityserver-discussions-components-files/16/GP_5F00_ProgettoInterfaccia.txt:233:29]>[View:/cfs-file/__key/communityserver-discussions-components-files/16/GP_5F00_ProgettoSummary.txt:223:27]>[View:/cfs-file/__key/communityserver-discussions-components-files/16/GP_5F00_CreateOrUpdateGPprogettoAnagrafica.txt:335:25].

The record types involved are:

.

The problem is that once I get to "GP_CreateOrUpdateGPprogettoAnagrafica," I can't populate the multipleDropdownField.

In the standalone interface, I can populate it without any problems, but as soon as this interface is called by the related action, I can't populate the field anymore...

I know it's all confusing, but I really don't know what I missed during the process.

Related Action:

Process Model Document[View:/cfs-file/__key/communityserver-discussions-components-files/16/GP-Create-Or-Update-GP_5F00_progetto-Anagrafica-_2D00_-Process-Model-Documentation.pdf:160:182]

4 replies

stefanhelzle0001
July 9, 2025
In the standalone interface, I can populate it without any problems, but as soon as this interface is called by the related action, I can't populate the field anymore...

What do you mean by that? What is missing?

July 9, 2025

The interface field works if I open the interface from Appian Designer, but if I open the interface via a button with related action then the multipledropdownfield no longer works...

stefanhelzle0001
July 10, 2025

You described that already. But why is that?

To find out, add some text fields to the interface to debug any local variables or rule inputs.

shubhama926776
July 9, 2025

I want you to try this quick changes mostly your issue will get solve:

Wrap your queries in a!refreshVariable() with refreshAlways: true :-
local!anagrafiche: a!refreshVariable(
value: a!queryRecordType(...).data,
refreshAlways: true
)
Do this for both local!progetti and local!anagrafiche.

Then add null checks in your multipleDropdownField:-
choiceLabels: if(a!isNullOrEmpty(local!anagrafiche), {}, ...)
choiceValues: if(a!isNullOrEmpty(local!anagrafiche), {}, ...)

This forces the queries to execute when called through the related action and prevents errors from empty data.

Let me know if that works.