Forum Discussion

MarkWinter1's avatar
MarkWinter1
Qrew Trainee
8 years ago

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

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)
  • To simplify this question:  How can I redirect to a non-QB page?  
  • 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)