Skip to main content
Known Participant
Feb 24, 2023 10:27 AM UTC
Question

visibility criteria for Related action

Hi Champs,

I have a use case where I don't need to show the related action in a record related action tab ; but I need to call that related action of a separate interface. the reason for doing this is I have to call an interface in a popup/dialog ; which can only possible in related action. 

Is it feasible to do so ?

5 replies

stefanhelzle0001
Brainy
Feb 24, 2023 12:08 PM UTC

Using related actions just to please a "requirement" to create a popup is questionable. But, sure. Disable the related actions view for that record. Settings the visibility to false, will make it unavailable in general. So avoid that.

abhayd3663
Brainy
Feb 24, 2023 10:45 PM UTC

1. Set Record Visibility to false().

2. User following code to display recordAction in the interface.

a!recordActionField(
  actions: {
    a!recordActionItem(
     action: recordType!Department.actions.update,
     identifier: ri!departmentId
    ),
    a!recordActionItem(
     action: recordType!Customer.actions.flag,
     identifier: ri!customerId
    )
  }
)

Ref. docs.appian.com/.../Record_Action_Component.html

Known Participant
Feb 25, 2023 2:02 AM UTC

Hi Abhay, once you make related action visibility to false , it won't show in interface too.

abhayd3663
Brainy
Feb 26, 2023 7:15 PM UTC

Use constant to set the record action visibility to false. Update constant to true from the interface and set it back to false when you are done with it.