Skip to main content
Question

Error in a URL Button

  • September 28, 2021
  • 0 replies
  • 62 views

GeorgeBramhall2
Forum|alt.badge.img+11
Any ideas why I am getting the followon error for this URL button:

I have the following code for a URL Button:
If((not([showcalledby]) or [Unclaim Lead]),
URLRoot() & "db/" & [_DBID_LEAD_NOTES] & "?a=API_EditRecord&rid=" & [Record ID#] &
"&rid=" & [Record ID#] &
"&_fid_39=" & URLEncode ([Current User]) &"&rdr="&URLEncode(URLRoot() & "db/" & Dbid() & "?a=doredirect&z=" & Rurl()))

but I am getting the following error:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<qdbapi>
<action>API_EditRecord</action>
<errcode>30</errcode>
<errtext>No such record</errtext>
<errdetail>Missing "rid" parameter.</errdetail>
</qdbapi>


------------------------------
George Bramhall
------------------------------
This topic has been closed for replies.

Forum|alt.badge.img+14
  • Quickbase Alumni
  • September 28, 2021
You have "&rid=" & [Record ID#] & twice. Remove the second instance.

If((not([showcalledby]) or [Unclaim Lead]),
URLRoot() & "db/" & [_DBID_LEAD_NOTES] & "?a=API_EditRecord&rid=" & [Record ID#] &
"&rid=" & [Record ID#] & //REMOVE THIS LINE
"&_fid_39=" & URLEncode ([Current User]) &"&rdr="&URLEncode(URLRoot() & "db/" & Dbid() & "?a=doredirect&z=" & Rurl()))

------------------------------
Michael Tamoush
------------------------------