Please refer below links to extract refresh in tableau.
if links are useful then marked as correct and helpful.
Amar D. Savale
Thanks for the links, these are showing schedule on the Online or physical server with script.
However, need to refresh based on the ETL Jobs or database refresh.
Please check following threads if you haven't already done so.
You can also attempt to reach out to people in those threads and request for help.
Good Luck !!