DanielNewhart
7 years agoQrew Trainee
Using API_DoQuery in API_EditRecord
I'm trying to create a webhook that will edit the record in another table when a new record is added. To do so, I'm trying to use a field in the new record to search the records in the other table for matching values, and then edit those results accordingly.
Here are the details of the webhook I've created:
Endpoint URL:
Message Format: XML
Message Header: QuickBase-Action API_EditRecord
Message Body:
<qdbapi>
<usertoken>[Insert User Token]</usertoken>
<key><query>{'45'.CT.'[District]'}</query></key>
<field fid="22">[Start Date]</field>
<field fid="23">[Month]</field>
<field fid="25">[Fiscal Year]</field>
</qdbapi>
Essentially I'm trying to find the record for a the district that just received an audit (new record) and update specific fields in that record. However, I keep getting an error code of 30 (no such record). Below is the error code response:
<?xml version="1.0" ?>
<qdbapi>
<action>API_EditRecord</action>
<errcode>30</errcode>
<errtext>No such record</errtext>
<errdetail>Sorry, there is no record in this application table with the record identifier (rid) of "4294967295".</errdetail>
</qdbapi>
The reference guide for API_EditRecord indicates that you can use API_DoQuery I'm just not sure what I'm doing wrong.
Here are the details of the webhook I've created:
Endpoint URL:
https://fedex.quickbase.com/db/<b>[Insert DbID]<br></b>
HTTP Method: POSTMessage Format: XML
Message Header: QuickBase-Action API_EditRecord
Message Body:
<qdbapi>
<usertoken>[Insert User Token]</usertoken>
<key><query>{'45'.CT.'[District]'}</query></key>
<field fid="22">[Start Date]</field>
<field fid="23">[Month]</field>
<field fid="25">[Fiscal Year]</field>
</qdbapi>
Essentially I'm trying to find the record for a the district that just received an audit (new record) and update specific fields in that record. However, I keep getting an error code of 30 (no such record). Below is the error code response:
<?xml version="1.0" ?>
<qdbapi>
<action>API_EditRecord</action>
<errcode>30</errcode>
<errtext>No such record</errtext>
<errdetail>Sorry, there is no record in this application table with the record identifier (rid) of "4294967295".</errdetail>
</qdbapi>
The reference guide for API_EditRecord indicates that you can use API_DoQuery I'm just not sure what I'm doing wrong.