I am using the API to create a record and, once completed, trying to redirect the users to a page with information.

  • 0
  • 1
  • Question
  • Updated 1 year ago
  • Answered
I am using the API to create a record and, once completed, trying to redirect the users to a page with a short message. I was redirecting to a DB page within QB, but since our QB implementation is behind SSO, if the user is not logged in via SSO, it will not return the page (even though I am passing a user_Token).   

Can someone tell me how I can easily return a short text message (Page, popup, etc.) that will be reliable regardless of a user's logged in status? 

Here is one example of a formula URL field I am using:

var text URLONE = 
URLRoot() 
& "db/" 
& Dbid () & "?act=API_EditRecord&usertoken=b3h8mh_k_c9j3i6gcvnzat8caff9m2qui&rid=" & [Record ID#]
& "&_fid_51=1&_fid_122=" & Today();

var text URLTWO = "https://QB.com/db/bnc869ufr?a=dbpage&pageID=3";

$URLONE & "&rdr=" & URLEncode($URLTWO)
Photo of Mark Winter

Mark Winter

  • 252 Points 250 badge 2x thumb

Posted 1 year ago

  • 0
  • 1
Photo of Mark Winter

Mark Winter

  • 252 Points 250 badge 2x thumb
To simplify this question:  How can I redirect to a non-QB page?  
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 65,320 Points 50k badge 2x thumb
not tested but I would try

var text URLONE = 
& Dbid () & "?act=API_EditRecord&usertoken=b3h8mh_k_c9j3i6gcvnzat8caff9m2qui&rid=" & [Record ID#]
& "&_fid_51=1&_fid_122=" & Today();
var text URLTWO = "https://google.com"; 
$URLONE
& "&rdr=" & URLEncode($URLTWO)

(Edited)