#part 2 Let's Write A Business Rule- Covid19 Dashboard
[Music] [Music] okay so today we are going to buy a business for before writing our business for let's first understand why we need a business for and what business what we are going to write okay so what you see here these are all my reports that I have okay so this record this is you won't have to all this recall that I have which is for Japan I have the summary and you can notice that the day that are having the created date its 22nd of January and it's the past date okay so if you import by default all the data today for example if you're importing ten thousand recalls into the table you will not have any past date in the created date field you will have the current date so you will have today's date if you do that today so how I can have here the past date so for that they're going to write a very simple business rule which is actually going to take the value that will have they will have in the date field and then it will send that value to the created date field or updated date field so it will assign to these fields so that's a business soon we are going to write and this is important to write it in the beginning so later on we will be creating reports or jobs in performance analytics and we have to make sure that we have the right dates now so let's create our business rule okay let's click on create application file look for business for click on create and then give a name for your business hole I'm going I'm going to good for example update created and updated date fields our table is going to be coffee 19 cases table so it's a before business for so before an insert so I'm gonna select here insert and then in the action tab I'm going to put my set the field values so the created field should be should have the date field value same thing for updated field so click on summit that's it we have our business for thanks for watching
https://www.youtube.com/watch?v=u1sSgIXLNWo