Forum Discussion
MCFNeil
8 years agoQrew Captain
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:
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()})"
anthony3123anth
8 years agoQrew Trainee
Thanks Matthew, I can confirm your solution works perfectly!
I have implemented using the following formula URL button:
I have implemented using the following formula URL button:
"javascript:$.post('https://mydomain.quickbase.com/qb/sync/refreshTasks?replicationID=12345', function(){location.reload(true);}); void(0);"