Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

Hi All,

iam attempting to send a Webhook Message to my Slack Channel.

The aim is to get the Maintenance Request Subject line with in the Webhook as well as its Status


I have tested the webhook with this

WEBHOOK = "https://xxxxx.net:3000/webhooks/flows/b25b89a9-9b4a-45fc-9bc4-bca0632990e8"
data = {
    "text": "wurde "}
make_request("POST", WEBHOOK, data=data)

This works fine and i get a messeage in Slack with wurde

However when i start to call the Models within the text the webhook stops sending data

WEBHOOK = "https://xxxxxxx.net:3000/webhooks/flows/b25b89a9-9b4a-45fc-9bc4-bca0632990e8"
data = {
    "text": maintenance.request.display_name+"wurde "}
make_request("POST", WEBHOOK, data=data)

what is the trick to get the stored data to this textfield to be posted to the Slack Channel?

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lis 23
2025
2
gru 23
5583
1
lis 22
2498
1
sie 22
2572
2
sty 22
5672