This is incredible! Thanks. I'm trying to combine this code with the formula to update the linked record in the connected table. I have both the buttons working independently, but I'm not sure how to combine them. The goal is for someone to be able to initiate an edit of the record in the connected table with a button and then have the refresh occur automatically so that they can see that updated value.
Is there a way to combine this refresh code to execute after something like the code I below?
var text URL = URLRoot() & "db/<CONNECTED TABLE ID>" & "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_231=" & ToDate(Now())
& "&apptoken=XXXXXX";
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
------------------------------
Tate Forgey
------------------------------
Original Message:
Sent: 07-18-2017 19:43
From: Matthew Neil
Subject: URL to manually refresh a connected table
Sorry for the mix up.
Because URLs are naturally a GET request (to pull information from the server), but the refresh is a server side action. We need to use a POST to initiate the refresh.
So your formula URL button would be:
"javascript:$.post('https://mydomain.quickbase.com/qb/sync/refreshTasks?replicationID=12345').then(function(res,code) {console.log(res,code);window.location.reload()})"