with Microsoft Dynamics 365 Sales and Discord Bot?
Emit new event when the ownership of an account changes.
Emit new event for each message posted to one or more channels
Emit new event when an account is activated or deactivated.
Emit new event when a contact is added to an account.
Emit new event when a new task or activity is created for an account.
Assign a role to a user. Remember that your bot requires the MANAGE_ROLES permission. See the docs here
Create a custom entity. See the documentation
Create a new invite for the channel. See the docs here
Search for a contact by id, name, or using a custom filter. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    microsoft_dynamics_365_sales: {
      type: "app",
      app: "microsoft_dynamics_365_sales",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://${this.microsoft_dynamics_365_sales.$auth.api_url}/api/data/v9.2/WhoAmI`,
      headers: {
        Authorization: `Bearer ${this.microsoft_dynamics_365_sales.$auth.oauth_access_token}`,
        "odata-maxversion": `4.0`,
        "odata-version": `4.0`,
        "content-type": `application/json`,
      },
    })
  },
})
The Discord Bot API unlocks the power to interact with Discord users and channels programmatically, making it possible to automate messages, manage servers, and integrate with other services. With Pipedream's serverless platform, you can create complex workflows that respond to events in Discord, process data, and trigger actions in other apps. This opens up opportunities for community engagement, content moderation, analytics, and more, without the overhead of managing infrastructure.
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    discord_bot: {
      type: "app",
      app: "discord_bot",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://discord.com/api/users/@me`,
      headers: {
        "Authorization": `Bot ${this.discord_bot.$auth.bot_token}`,
      },
    })
  },
})