# Integration services

**URL:** https://www.finalbuilder.com/forums/t/integration-services/5551
**Category:** Feature Requests
**Created:** [April 7, 2017, 11:23am UTC](https://www.finalbuilder.com/forums/t/integration-services/5551 "2017-04-07T11:23:12Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [April 7, 2017, 11:23am UTC](https://www.finalbuilder.com/forums/t/integration-services/5551/1 "2017-04-07T11:23:12Z")

</div>

We would like to start auto-posting when we do stable releases of our components. In this case, we want to send a message to a specific slack or microsoft teams room. Could these integrations be added to the events?  
  
Basically we want these events to be hit if:  
  
- branch is master  
- IsCiBuild == false  
  
Then post a message:  
  
Released %configurationanem% v%version% has been released

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [April 10, 2017, 5:14am UTC](https://www.finalbuilder.com/forums/t/integration-services/5551/2 "2017-04-10T05:14:51Z")

</div>

Hi Geert,  
  
You can currently send a Slack message using the Http Request build event handler. This can be done most simply using Slack [Incoming Web Hooks](https://api.slack.com/incoming-webhooks). e.g.  
  
Http Request  
Server Url: [https://hooks.slack.com/](https://hooks.slack.com/)  
Resource: /services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX  
Method: Post  
Data Format: Json  
  
Body  
Request Body: {“text”: “This is a message from ContinuaCI using Wweb API. Build \<$Build.LinkUrl$|$Build.Version$\> of configuration ‘$Configuration.Name$’ has been released. 😄”}  
  
When To Run  
Build Event : On Build Completed  
Build Status : Successful  
  
Conditions  
%IsCIBuild% Equals “false”  
$Source.RepoName.Branch$ Equals "master"  
  
You will need to add the web hook integration to the channel first to get the correct resource URL.&nbsp;  
  
You can also do this using the [Slack Web API](https://api.slack.com/methods/chat.postMessage):&nbsp;  
  
Http Request  
Server Url: [https://slack.com/](https://slack.com/)  
Resource: /api/chat.postMessage  
Method: Post  
Data Format: Json  
Authentication Type: Access token as parameter  
  
Authentication  
Authentication Parameters Type: Query String  
Access Token Key Name: token  
Access Token: \*\*\*\*\*\*\*\*\*\*\*\*  
  
Parameters  
POST Parameters:   
&nbsp; &nbsp; channel=#continuaci  
&nbsp; &nbsp; text=This is a message from ContinuaCI using incoming web hook. Build \<$Build.LinkUrl$|$Build.Version$\> of configuration ‘$Configuration.Name$’ has been released. 😄&nbsp;  
&nbsp; &nbsp; pretty=1  
  
When To Run  
Build Event : On Build Completed  
Build Status : Successful  
  
Conditions  
%IsCIBuild% Equals “false”  
$Source.RepoName.Branch$ Equals "master"  
  
You will need to create a Slack App for your team and give it permissions to send messages so that you have an OAuth Access Token to use for authentication.&nbsp;  
  
We haven’t tried this with Microsoft Team Rooms but you should be able to work this out from [this page](https://www.visualstudio.com/en-us/docs/integrate/api/chat/messages)

---

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [April 10, 2017, 1:41am UTC](https://www.finalbuilder.com/forums/t/integration-services/5551/3 "2017-04-10T01:41:32Z")

</div>

This is very nice, thanks for the detailed explanation. I created an app in slack and we can now see apps and components releases in our releases channels. Thanks!

---

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [April 10, 2017, 1:54am UTC](https://www.finalbuilder.com/forums/t/integration-services/5551/4 "2017-04-10T01:54:10Z")

</div>

This leads to another feature request (low priority obviously). I now need to add this to about 6 projects and 50 configurations, which is quite tedious. It would be nice if this could be done on the project level or if it was possible to edit configurations without the user interface (e.g. a very simplified “raw mode” using yaml or something like that).   
  
 For now I will go through all of this manually, but this is just for future references.

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [April 11, 2017, 1:18am UTC](https://www.finalbuilder.com/forums/t/integration-services/5551/5 "2017-04-11T01:18:34Z")

</div>

Hi Geert,  
  
Great that you got it working. Yes, we noted that project-level events would be useful when we were playing with this yesterday, and already added it to the to-do list. We have been working on the export and import of configurations to and from a yaml file. There’s still quite a bit to do on validation and testing. We plan to include it in a major version release, along with some other new features ,&nbsp;in the next &nbsp;few months.
