Skip to content

Conversation

@Lacah
Copy link
Contributor

@Lacah Lacah commented Oct 10, 2025

This action enables asynchronous communication between flows by using the sn_fd.FlowAPI.sendMessage() method to deliver a message to a specified flow context. It is useful for building event-driven or distributed process logic where different flows need to signal each other’s progress or completion.

Inputs:

  • context_id (String, required) - The context ID of the target flow waiting for a message.
  • message (String, required) - The message payload to send.
  • payload (String, optional) - A payload that is accessible by subsequent actions in the targeted flow.

Behavior:
When executed, the action should call the Flow API to send the provided message to the specified context ID:
sn_fd.FlowAPI.sendMessage(inputs.context_id, inputs.message, inputs.payload);

Since this API method does not return anything, the action's output is simply about whether or not the script was executed successfully.

Resolves #146

@github-actions
Copy link

Valid PR for ActionPack

Thank you for your contribution. This PR complies with the CONTRIBUTING.md.
A maintainer will review this shortly. In the meantime, Happy Hacking!

@Atul-LNG Atul-LNG self-assigned this Oct 10, 2025
@Atul-LNG Atul-LNG merged commit 1589ac1 into ServiceNowDevProgram:main Oct 10, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Send Message to Flow

2 participants