Thank you Ashish for your reply.
Yes but that would be the last thing we would like to do. We are looking for automating this process. I have read similar posts but they were on Tableau Server. I am not sure how different it would be to do the same for Tableau Online.
The link you are referring to involves accessing server database, which in case of Tableau Server you can access but as far as I know Tableau Online accounts can not access to the Tableau Server database.