callWebHook
Calls a webhook to trigger a system to do anything like posting a message to a teams channel.
Last updated
Calls a webhook to trigger a system to do anything like posting a message to a teams channel.
Last updated
url - The url of the teams or slack channel, see the video to learn how to get a WebHook url.
2. the message you want to send. That depends on the service, you want to post to. here are some examples for Microsoft Teams(https://docs.microsoft.com/de-de/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-using), but it can be as easy as seen in example 1
Plain text message
full styled message with actions
The function returns the result of the (internal) "fetch" function. The "fetch" function returns a "Promise" that resolves to the "Response" to that request. Since the function is marked as async, it implicitly returns a promise.