Discussions

Expand all | Collapse all

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

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

    Posted 02-27-2018 15:53
    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)


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

    Posted 02-28-2018 15:31
    To simplify this question:  How can I redirect to a non-QB page?  


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

    Posted 02-28-2018 15:55
    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)