Skip to main content
Solved

API Button Help

  • November 15, 2024
  • 0 replies
  • 459 views

AlexBartholomew
Forum|alt.badge.img+4

Hello Everyone,

I have created an API button, but I keep getting an update_id error. Can someone please help me understand what this error means so I can fix it? Thank you -Bart

<qdbapi>

<action>API_AddRecord</action>

<errcode>0</errcode>

<errtext>No error</errtext>

<rid>26238</rid>

<update_id>1731629328550</update_id>

</qdbapi>

Best answer by MarkShnierYou

You will probably do a Homer Simpson D'oh, but if you are pushing a button on the parent record then it's the [Record ID#] of the record you're sitting on that needs to be pushed into [Related Parent]

 

    "&_fid_15=" & URLEncode([Record ID#]) &

 

MarkShnierYou
Forum|alt.badge.img+22
  • Quickbase Alumni
  • November 15, 2024

If you post your code and let us know where you want to land the user after they push the button then we can fix the code. This is not an error message it just means that you didn't land the user on a record or a report after the record was added. 

Do you wanna land the user on the newly created record? Do you want to refresh the page that your lunch from? 


MarkShnierYou
Forum|alt.badge.img+22
  • Quickbase Alumni
  • November 15, 2024

If a child is not connecting to a Parent, the double check the you are populating the correct fid for the related parent and that you are populating it with the correct value. 

you can examine the result of the formula by exposing the code by removing the label for the button and then you can see what it is actually doing