This topic was automatically generated from Slack. You can find the original thread here.
can i check if there’s any way to receive webhook events when a workflow is enabled / disabled?
This topic was automatically generated from Slack. You can find the original thread here.
can i check if there’s any way to receive webhook events when a workflow is enabled / disabled?
Currently, there is no direct feature in Pipedream that allows you to receive webhook events specifically when a workflow is enabled or disabled. However, you can upvote and add your feedback to this GitHub issue to express your interest in such a feature. For more information on managing workflows, you can refer to the Pipedream Workflows documentation. If you have further questions or need assistance, feel free to visit Pipedream Support.
i would like to be notified via slack when a workflow is enabled / disabled. can i do that?
To receive notifications via Slack when a Pipedream workflow is enabled or disabled, you can set up a workflow that triggers on these events and sends a message to Slack. Here’s a step-by-step guide on how to achieve this: 1. Create a New Workflow: Start by creating a new workflow in Pipedream. 2. Set Up a Trigger: Unfortunately, Pipedream does not have a built-in trigger for workflow state changes (enabled/disabled). You would need to use a workaround, such as manually triggering the workflow when you enable or disable another workflow, or using an external service that can monitor these changes and trigger a Pipedream workflow. 3. Send a Slack Notification: Use the Slack integration to send a notification. You can use the “Send Message to a Public Channel” action in Pipedream to send a message to a Slack channel. Here is an example of how you might set up the Slack action: ```
import { axios } from “@pipedream/platform”; export default defineComponent({ props: { slack: { type: “app”, app: “slack”, }, channel: { type: “string”, label: “Channel ID”, description: “The ID of the channel where the message will be sent”, }, message: { type: “string”, label: “Message”, description: “The message to send”, }, }, async run({ steps, $ }) { return await axios($, { url: https://slack.com/api/chat.postMessage
, method: “POST”, headers: { Authorization: Bearer ${this.slack.$auth.oauth_access_token}
, }, data: { channel: this.channel, text: this.message, }, }); }, });
Hi , unfortunately we don’t send notifications when a workflow is enabled or disabled. Could you tell me more about the use case? When can a workflow be disabled / enabled in your case?