AnshulGoyal
7 years agoQrew Trainee
send multiple values (multi select field) for a field through Quickbase API (preferably using URL)
Hello Community Members,
I am trying to use Quickbase API (using Tableau) to be able to edit a record in Quickbase tables. I am able to send the request for single select fields but one of the fields in multi select. I am getting an error when I am trying to pass more than 1 values for that field. I am sure it should be possible for me to send multi-select values for a field. I am sending the API request through URL (by making use of Tableau's URL actions). The sample request I am sending is:
***************
https://<root url>/db/<db code>?a=API_EditRecord&rid=1434&rl=ee2&noPrevNext=true&dfid=10&_fnm_Publishing_Status_Date=<update time>&_fnm_Publishing_Status=<Publishing Status_Multi>&apptoken=<appcode>
**************
The field 'Publishing Status_Multi' is a multi select field and has values as "testresponse1;testresponse2".
The error I am getting is:
**********************************
<qdbapi>
<action>API_EditRecord</action>
<errcode>2</errcode>
<errtext>Invalid input</errtext>
<errdetail>
You must provide a valid choice for the field named "Publishing Status" with field id 114.
</errdetail>
<rid>1434</rid>
<num_fields_changed>0</num_fields_changed>
<update_id/>
</qdbapi>
******************************************
In the Quickbase help guide, I did not find any example where they showed the sample API request for a field with multiple values. Is it even possible?
I am trying to use Quickbase API (using Tableau) to be able to edit a record in Quickbase tables. I am able to send the request for single select fields but one of the fields in multi select. I am getting an error when I am trying to pass more than 1 values for that field. I am sure it should be possible for me to send multi-select values for a field. I am sending the API request through URL (by making use of Tableau's URL actions). The sample request I am sending is:
***************
https://<root url>/db/<db code>?a=API_EditRecord&rid=1434&rl=ee2&noPrevNext=true&dfid=10&_fnm_Publishing_Status_Date=<update time>&_fnm_Publishing_Status=<Publishing Status_Multi>&apptoken=<appcode>
**************
The field 'Publishing Status_Multi' is a multi select field and has values as "testresponse1;testresponse2".
The error I am getting is:
**********************************
<qdbapi>
<action>API_EditRecord</action>
<errcode>2</errcode>
<errtext>Invalid input</errtext>
<errdetail>
You must provide a valid choice for the field named "Publishing Status" with field id 114.
</errdetail>
<rid>1434</rid>
<num_fields_changed>0</num_fields_changed>
<update_id/>
</qdbapi>
******************************************
In the Quickbase help guide, I did not find any example where they showed the sample API request for a field with multiple values. Is it even possible?