Heroku - 20 Configuration Messages Outbound
Hello everyone and welcome to this introductory course to heroku, today we are going to reconfigure the high garonne and make sure that the data sent from this 14 is sent to heroku. data sent from this 14 is sent to heroku, first we will deploy the code that will process the request we will look briefly at the code what it makes and we will not deplore so that our application is ready to use this one then the created to the rule of the route band on salesforce longval configured so that to any change to the object that they a message outgoing will be sent so that the application that we have created can read it finally we have validated the fact that all was sent and treated let us look now at the code that will allow the application and rock or to receive messages to the bands to format xml and to convert them in gie sonne what we see first the module node required for this application the cursed by sister and what will analyze the body of the message the body parser xml will verify if the file xml if it is one it will automatically processed and converts it to a harrison after that it's just the code that's needed for a server to it will simply make the server start and the application be ready to receive fines now let's go over this side the first things on this file are the hac and the nak if you remember from the previous lesson these are the answers we need to provide to salesforce when in the case of a pack the operation is successful and in the case of a scam the operation has failed again, since the code is not the primary purpose of the rescue I will not dwell on it any further you you can simply copy what you see there if you try to reproduce the operation I will now be this code would be a lot for us to start receiving outgoing messages from this source to deploy code what we need to do is we already went to the application it's safe to deploy and we can simply follow the instructions here I will deploy my code having already done its first three commands being already connected on my command guest I don't need to do them I would just need to I would just need to do the commands that are here so I open my command prompt if again already connected heroku, git had git committe give a little message with when committee and finally git pocket and neck masters and here the code is deployed is ready to be used I will now go to follow in account this force to be able to configure the messages to resell two returns on salesforce I will in this up the tap workflow or June mul and I will create a new one so red walls choose the object they next and for the name will remain simple here we have the evaluation criteria there are three options for sending outgoing messages the first will create a message on time of the boxes and create the the second one when a kaid and created or modified and the third option takes the two previous ones in addition to offering a person 10 to sion other criteria below I will simply choose the second option this part will serve you to filter the data that you send them as said in the course to the previous today I do not want to add more parameters. want to add more parameters than that so it will be a simple rule but there they want to be all wheels here I save and continue here is the rule that I have just created now we just need to have an associated action to add a house band you will here in front of a message in have I will once again remain simple world skies this is done automatically for what is the line url it will be the url of your application therefore to find it it is enough to go on your application open ap to the feet here is the end like slash that they it is the url to which it is the sport will be sent the outgoing message i'll send all the had fields and then here it is now all these songs will be sent in the message to audard you you can of course choose to send only some of them I save and here we have the rule so every time there will be a every time there will be a new case they create or that there will be a modification this message to the bands will be sent on our application then gives and it is necessary not to forget to activate the rule because it will be deactivated by we have now all to configure what it remains to us to make it is to create a kingpin create a kingpin so I pressed on it new and there before shouting it I will go on my involvement in my logs we would see here a log when the application will receive the request of this force I can go back on cèze forces to create my case I will not fill its boxes for the type to give mechanical as the agencies we'll leave in the medium that is web origins what I fill in here is not real data it's just for real data it is simply for the example I will save the water can see that the 15 was created I will find on the side of my blogs where will find on the side of my blogs where we can see the list of the world there is well the information that your new name of m media - web facilities but now we will see what happens when my send a hack to the source one I will change the priority of medium to water test the code was configured so that it checked if the priority was water and if so a hack is in real at salesforce due to the rule we have put in place this modification will cause one sees in house bandon can see that one has received a message outgoing with priority if water you can also see that we have received a request even several while one we did not make new changes since it is the sport that received a hack they try to resend give again I'll go back to salesforce or you show of how to know that a request has failed this up, out world monitor and you see here that we have the idea of the message going out the object is the idea of the cairo that has failed salesforce has already tried to send it four times and the reason for the failure is here you have here the time and date of leave as well as here the time and date of the next attempt salesforce will continue to try to send it for 24 hours is past this time it will drop an offer to time it will drop an offer to nothing with this request. That's it for this video but I say to you soon for the next one!