Skip to main content
May 4, 2021
Question

How to refresh related action button in record

  • May 4, 2021
  • 6 replies
  • 0 views

My requirement is to refresh my related action button when any event happens and the visibility for the related action set to false

    6 replies

    danny.verb
    May 4, 2021

    Which kind of event is happening? Whenever another related action occurs, even when it's in a modal, Appian will reevaluate the visibility expression once the modal closes.

    May 4, 2021

    ok, Assume I have 2 related action

    1. Add service to account(visibility criteria acct_status="Active")

    2. Deactive Account- will make acct_status= "Deactive"

    When a user clicks on any active Account from the record list and stays on the record view. meanwhile, another user deactivated the same account and change the status from "Active" to "Deactive", Then the first user still sees the 1st related action.  How does it get refreshed without reloading the page

    mikes0011
    Brainy
    May 4, 2021
    Then the first user still sees the 1st related action.  How does it get refreshed without reloading the page

    There's no direct way to do this.  If you're worried about this race condition, the main thing I'd suggest you implement is an in-process check which checks the status of (a freshly-queried copy of) the Account Status, and if it's already been deactivated, simply route the process flow to an end node (or potentially to a separate task with a read-only display informing the user that it's been previously deactivated).

    The Expression Guru