I need to track the download history for the files being downloaded and store in DB. By using a server action , we just need to store the values in table.For example, If I have a download option for any uploaded file and click on download button in a screen. I want to store that downloaded history as shown below in DB.Can anyone please help with this or share an OML application if available.Thanks in advanceDarshini M.V
Hi Pryia!
You can do that by using the Createdownload_history or CreateOrUpdatedownload_history action to create a record every time you download a file.
If you go to the Entity, you can see those action right below the attributes, and you can put them on the server action that you want to use to download the file to create the record.
You can see this documentation that talks about How to create a database entity that can help you with that.
Tell me if I helped or if you need more information.
Cheers.
This is fine for storing records in DB, but I need to know how to store the records from already existing attributes . For instance I have filename and filetype in application's DB I have requestId and some other attributes in extension db . So, I need to know how to achieve this.
Hi Priya,I'm not sure about what you're trying to achieve, but here is my opinion.
You can have an attribute of "FileId" to your download_history as a reference of your download.this will limit the saving of unnecessary data and just add the user and datetime of download