-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to respond to webhooks. #838
Conversation
Hookshot is posting the message twice to Matrix when const responseBody = `
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<notificationsResponse xmlns="http://soap.sforce.com/2005/09/outbound">
<Ack>true</Ack>
</notificationsResponse>
</soapenv:Body>
</soapenv:Envelope>
`.trim();
result = {
empty: false,
msgtype: 'm.text',
plain: message,
version: 'v2',
webhookResponse: {
body: responseBody,
contentType: 'application/xml',
statusCode: 418,
}
}; Also, Waiting for my contact to do an actual test with Salesforce. |
Actually, once you have enabled |
Has now been tested with Salesforce, and Sf is happy 🎉 |
Fixes #837
This adds two new features to the generic webhook connection type: