Skip to main content
Question

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

  • February 27, 2018
  • 0 replies
  • 45 views

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)
This topic has been closed for replies.

  • Author
  • Registered
  • February 28, 2018
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)