Skip to content

Calling completeSuccess causes button actions to stop working #2508

@jonathan-wong-DD

Description

@jonathan-wong-DD

Hi team, I'm trying to make a custom workflow step function that posts a workflow message and then replies with additional action buttons. Whenever I set the workflow step to complete, it seems to cause all buttons it creates to become unresponsive and shows an error icon. Everything works as normal when I omit the complete function, but I don't want to have all the workflows stuck in processing. I cannot just have the complete function call when one of the buttons are pressed because users are allowed to undo that press at any time.

Here is an example image where the workflow outputs the parent message and then posts a reply with some action buttons:

Image

From my understanding calling client.functions.completeSuccess seems to prevent any buttons/interactivity created by the workflow step from running. Is this intended or did I misuse the function? Is there anyway to keep the buttons still active even after a workflow is to complete.

@slack/bolt version

4.2.0

Your App and Receiver Configuration

const app = new App({
  token: 'Token',
  signingSecret: 'Token',
  appToken:  'Token',
  socketMode: true,
})

Node.js runtime version

v20.12.2

Steps to reproduce:

Calling client.functions.completeSuccess prevents any buttons from working

Expected result:

I expect that once the workflow is completed the buttons on a message still work.

Actual result:

Clicking the button does nothing and shows an error icon. Tried logging when the button action function is called, but it doesn't get called.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions