Heroku - 19 Messages Outbound Introduction

Hello everyone and welcome to this course introduction to heroku, today we anchor the second way to integrate this force heroku, the alban messages or outgoing messages there are several things that are different compared to other methods nevertheless because there are almost no limitations in terms of outgoing data and no additional cost this solution can be the one that is adapted to your problem firstly cash because the request an abat landes is a message that salesforce sends an external application application such as heroku, this message will typically be made following an update or an observation in a table for observation in a table for example you update a table by changing the value of one of the fields this will cause an outgoing message that will be sent to an external application that you need to configure a rider typically one needs three things an object in other words a salesforce table this means that there will be a halo request associated with the table a change in one of the fields of the table would send a message out of the updated field the second thing needed is a updated field the second thing needed is a rule associated with the high marne the purpose of this rule and son tripp given that you don't want to see yourself with the outgoing message finally the last thing needed is an external application that will receive the outgoing message you can use here for example a heroku application, which will receive the singing message and will process it it will be able for example to store its data in a database for later use let's see an example of how it works imagine or one develops an application that manages the collaborators of a company and it has a table salesforce to 40 where we keep track of our employees let's pretend that there is an employee account with the following fields our company x type of employee and the phone number let's say that there is a rule for the type collaborators and that only the accounts with the type collaborators will be album let's say that there is a change of the new number will cause an outgoing message since it's a collaborator type the rule will validate the message collaborators the rule will validate the message setting it to validate means that the outgoing message will be sent by salesforce to the sent by salesforce to the external application now let's consider the same example but this time with a different account and we have the company y the type customer and the phone number 10 or again there is a change of phone number but this time the type is not collaborated due to that the outgoing message will not be sent now that we have a better image to start the forces manages the outgoing messages to move to the side of receiving these messages how an external application will retrieve the request and milked the first thing to know is that the messages on tensions generated in xml format it's a slightly outdated format that was more popular a few years ago it's years ago it is nowadays replaced by other formats such as I have for example processing these responses can be cumbersome because if you use a language some notes you don't have really easy way to process excel files so you will need some kind of of parser to convert that table into something that the language can handle easily now let's say you've already done both and had done what you had to do with how to answer the query from salesforce how to tell it that it went well or not is this gives you two options to answer the first one and ac which means ac knowledge recognize or admit in this context these acknowledgements on signals that the process was successful for example you can send a hack after the table has been processed and stored in the database the second and nac which stands for note pack knowledge what happens is that when you send a hack to salesforce sel either it will understand that the process was a failure and it will continue to try to send that message for 24 hours if after 24 hours salesforce has not been cloning it will automatically go this request and it will try to send it to toulouse let us speak now of the limitations the greatest limitation that possess the messages to resell its jumps united directionality that means that only salesforce will send this message especially to a heroku application, for the messages to their terminals are no longer suitable when there is no need for interaction taking place on the opposite side opposite another limitation and that the deletion of data does not cause outgoing messages for example if you for example if you delete a column or row in salesforce it is not possible to configure a message on time to to signal this deletion in conclusion with the messages to the bands you can send to an external application a table every time there is a change in it the external application will process the rocket and for example store the data data to be able to use them on the application the messages of which and the option presented with the least limitation with respect to the heroku data, so it is not purent is considered with respect to salesforce heroku integration, but are united directionality means that it is not always the first to be be considered. That's it for this video but I'll see you soon for the next one!